#CDC042#CDC042

#CDC042 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.6% C 0.143 H 103.4°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#CDC042
RGBrgb(205, 192, 66)
HSLhsl(54, 58%, 53%)
HSVhsv(54, 68%, 80%)
CMYKcmyk(0%, 6.3%, 67.8%, 19.6%)
CIE-LABlab(76.72, -9.94, 62.30)
CIE-LCHlch(76.72, 63.09, 99.06°)
OKLaboklab(79.59% -0.0332 0.1396)
OKLCHoklch(79.59% 0.144 103.4)
XYZxyz(45.0117, 51.0736, 12.6404)
Luminance0.5107 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC042 #424FCD
analogous
#CD7A42 #CDC042 #95CD42
triadic
#CDC042 #42CDC0 #C042CD
tetradic
#CDC042 #42CD7A #424FCD #CD4295
square
#CDC042 #42CD7A #424FCD #CD4295
split-complementary
#CDC042 #4295CD #7A42CD
monochromatic
#766D1F #A69A2C #CDC042 #DAD072 #E7E0A3

Accessibility & contrast

On white

1.87
#CDC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.21
#CDC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC042
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC042#FFFFFF#000000##000000
##CDC0421.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#DCB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc042;
/* rgb */ color: rgb(205, 192, 66);
/* oklch */ color: oklch(79.6% 0.143 103.4);
Tailwind
colors: {
  custom: {
    50: '#e0d27d',
    500: '#cdc042',
    950: '#000000',
  },
}
SCSS
$custom: #cdc042;
$custom-light: #e0d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc042",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 54.388,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.79593,
    "c": 0.1435,
    "h": 103.4
  },
  "luminance": 0.51072
}

Semantic roles & 50–950 ramp

primary
#CDC042
secondary
#353C7E
accent
#55E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC042

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

Preview Lab → · Contrast checker → · Palette generator →

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