cyan — #00FFFF
#00FFFF
rgb(0, 255, 255) · hsl(180, 100%, 50%) · CSS keyword cyan
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| cyan on white | 1.25:1 | — | — |
| cyan on black | 16.75:1 | AA | AA |
As a background, cyan takes black text: 16.75:1 against 1.25:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: cyan;
color: #00ffff;
color: rgb(0 255 255);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to cyan
- aqua — #00FFFF
- mediumspringgreen — #00FA9A
- darkturquoise — #00CED1
- springgreen — #00FF7F
- turquoise — #40E0D0
- deepskyblue — #00BFFF
Frequently asked questions
What is the hex code for cyan?
The hex code for cyan is #00FFFF — RGB 0, 255, 255.
Can I use cyan for text?
Not on a white background. cyan reaches only 1.25:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.
Should text on cyan be black or white?
Black — 16.75:1 against 1.25:1 the other way.
Other named colours
- darkblue — #00008B
- darkcyan — #008B8B
- darkgoldenrod — #B8860B
- darkgray — #A9A9A9
- darkgreen — #006400
- darkkhaki — #BDB76B
- darkmagenta — #8B008B
- darkolivegreen — #556B2F
- darkorange — #FF8C00
- darkorchid — #9932CC
- darkred — #8B0000
- darksalmon — #E9967A
#00FFFF in full — tints, shades and harmonies · All named colours · Colour reference