Skip to content

CSS named color

Cyan #00FFFF

Cyan (CSS keyword cyan) has the hex code #00FFFF and the RGB value rgb(0, 255, 255): a very light, vivid cyan.

Cyan#00FFFF

Cyan is identical to aqua (#00ffff) and is the name of the subtractive primary used in CMYK printing. On screen it is the full-intensity mix of the green and blue channels.

The keyword aqua has exactly the same value (#00FFFF); browsers treat them as the same color.

Color codes for Cyan

Color codes for Cyan
CSS keywordcyan
HEX#00FFFF
RGBrgb(0, 255, 255)
HSLhsl(180, 100%, 50%)
HWBhwb(180 0% 0%)
OKLCHoklch(90.5% 0.155 194.8)
CMYK (naive, no ICC profile)cmyk(100%, 0%, 0%, 0%)
Decimal65,535
Hue familyCyans and teals
Same value asaqua

Contrast and accessibility

On cyan, black text has a contrast ratio of 16.74:1 and passes AAA at any text size; white text reaches 1.25:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on cyan16.74:1PassPassPassPass91.8
White text on cyan1.25:1FailFailFailFail−13.7
Cyan text on white1.25:1FailFailFailFail11.8
Cyan text on black16.74:1PassPassPassPass−92.2

Tints and shades

Each step mixes cyan with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, cyan, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #0dffff
  2. 15%
    #26ffff
  3. 25%
    #40ffff
  4. 35%
    #59ffff
  5. 45%
    #73ffff
  6. 55%
    #8cffff
  7. 65%
    #a6ffff
  8. 75%
    #bfffff
  9. 85%
    #d9ffff
  10. 95%
    #f2ffff

Shades (mixed with black)

  1. 5%
    #00f2f2
  2. 15%
    #00d9d9
  3. 25%
    #00bfbf
  4. 35%
    #00a6a6
  5. 45%
    #008c8c
  6. 55%
    #007373
  7. 65%
    #005959
  8. 75%
    #004040
  9. 85%
    #002626
  10. 95%
    #000d0d

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, cyan's complementary color is #FFCDD1 (close to pink), its analogous colors are #67FFC6 and #9CEDFF, and its triadic partners are #F8CDFF and #FFD588. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ffcdd1
Analogous−30°, +30°#67ffc6#9cedff
Triadic+120°, +240°#f8cdff#ffd588
Split-complementary+150°, +210°#ffc8ee#ffd0b6

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

Cyan is a cool color: its hue is 180° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
aquamarine#7fffd46.8
turquoise#40e0d09.0
paleturquoise#afeeee9.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
cyan-300#53eafd5.7
teal-300#46ecd56.3
teal-200#96f7e46.6

Code snippets

CSS
.element {
  color: cyan;
  background-color: #00ffff;
  border-color: rgb(0 255 255);
  outline-color: oklch(90.5% 0.155 194.8);
}
Tailwind CSS
<div class="bg-[#00ffff] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-cyan: #00ffff;
}
/* then use bg-cyan, text-cyan, border-cyan */
SwiftUI
import SwiftUI

extension Color {
  static let cyan = Color(red: 0.000, green: 1.000, blue: 1.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Cyan = Color(0xFF00FFFF)
Flutter
import 'package:flutter/material.dart';

const cyan = Color(0xFF00FFFF);
Android XML
<!-- res/values/colors.xml -->
<color name="cyan">#00FFFF</color>

Frequently asked questions

What is the hex code for cyan?
The hex code for cyan is #00FFFF. The same color is rgb(0, 255, 255), hsl(180, 100%, 50%) and oklch(90.5% 0.155 194.8), and in CSS you can also write the keyword cyan directly.
Is cyan a warm or cool color?
Cyan is a cool color: its hue is 180° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with cyan?
Rotating the hue in OKLCH while keeping lightness and chroma, cyan's complementary color is #FFCDD1 (close to pink), its analogous colors are #67FFC6 and #9CEDFF, and its triadic partners are #F8CDFF and #FFD588. For text on top, black gives the higher contrast.
Can you use white text on cyan?
White text on cyan has a contrast ratio of 1.25:1, which fails AA even for large text under WCAG 2.2. Black text reaches 16.74:1 and passes both AA and AAA. In APCA terms that is Lc −13.7 for white and Lc 91.8 for black.
Is cyan the same as aqua?
Yes. Both keywords are #00FFFF (rgb(0, 255, 255)). CSS Color 4 keeps both for compatibility, so use whichever your codebase already uses.

Last reviewed by Arielton Oberek.