#CDC02E#CDC02E

#CDC02E is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.5% C 0.155 H 104.0°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#CDC02E
RGBrgb(205, 192, 46)
HSLhsl(55, 63%, 49%)
HSVhsv(55, 78%, 80%)
CMYKcmyk(0%, 6.3%, 77.6%, 19.6%)
CIE-LABlab(76.60, -10.85, 69.25)
CIE-LCHlch(76.60, 70.09, 98.90°)
OKLaboklab(79.46% -0.0377 0.1507)
OKLCHoklch(79.46% 0.155 104)
XYZxyz(44.5216, 50.8775, 10.0594)
Luminance0.5088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC02E #2E3BCD
analogous
#CD702E #CDC02E #8BCD2E
triadic
#CDC02E #2ECDC0 #C02ECD
tetradic
#CDC02E #2ECD70 #2E3BCD #CD2E8B
square
#CDC02E #2ECD70 #2E3BCD #CD2E8B
split-complementary
#CDC02E #2E8BCD #702ECD
monochromatic
#696218 #9B9123 #CDC02E #DBD15D #E6DF8F

Accessibility & contrast

On white

1.88
#CDC02E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#CDC02E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC02E
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC02E#FFFFFF#000000##000000
##CDC02E1.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2B903
Deuteranopia (green-blind)
#D6C03A
Tritanopia (blue-blind)
#DDB2A5
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc02e;
/* rgb */ color: rgb(205, 192, 46);
/* oklch */ color: oklch(79.5% 0.155 104.0);
Tailwind
colors: {
  custom: {
    50: '#e0d273',
    500: '#cdc02e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc02e;
$custom-light: #e0d273;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc02e",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 46
  },
  "hsl": {
    "h": 55.094,
    "s": 63.347,
    "l": 49.216
  },
  "oklch": {
    "l": 0.79461,
    "c": 0.15536,
    "h": 104
  },
  "luminance": 0.50876
}

Semantic roles & 50–950 ramp

primary
#CDC02E
secondary
#2C3273
accent
#4FE641
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CDC02E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CDC02E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva