yellow

#FFFF00 · CSS color name

yellow is the CSS color name for #ffff00: RGB(255, 255, 0), HSL(60°, 100%, 50%), CMYK(0%, 0%, 100%, 0%). Contrast is 1.07:1 on white and 19.56:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ffff00
CSS color nameyellow
HEX (3)#ff0
RGBrgb(255 255 0)
RGB (legacy)rgb(255, 255, 0)
RGB %rgb(100% 100% 0%)
HSLhsl(60 100% 50%)
HSV / HSBhsv(60, 100%, 100%)
HWBhwb(60 0% 0%)
CMYKcmyk(0%, 0%, 100%, 0%)
CIELAB (D50)lab(97.61 -15.75 93.39)
LCHlch(97.61 94.71 99.57)
OKLaboklab(0.968 -0.0714 0.1986)
OKLCHoklch(0.968 0.211 109.77)
Decimal16776960

Properties

Color ToneYellow, Gold
Closest named coloryellow ΔE 0
Closest web-safe color#ffff00
Hue60°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)50%
Brightness or Value (HSV)100%
Luminance (Rec.601 / Rec.709)89% / 93%
Relative luminance (WCAG)0.9278
Red / Green / Blue255 / 255 / 0

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.07:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
19.56:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 0 / -102.7 · As background with white / black text: Lc 0 / 101.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-yellow: #ffff00;
  --color-yellow-oklch: oklch(96.8% 0.211 109.77);
}
.text { color: var(--color-yellow); }
.background { background-color: var(--color-yellow); }
.border { border: 1px solid rgb(255 255 0 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ffff00] text-[#ffff00] border-[#ffff00]">