#CDC942#CDC942

#CDC942 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.5% C 0.152 H 107.7°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#CDC942
RGBrgb(205, 201, 66)
HSLhsl(58, 58%, 53%)
HSVhsv(58, 68%, 80%)
CMYKcmyk(0%, 2%, 67.8%, 19.6%)
CIE-LABlab(79.13, -14.50, 64.73)
CIE-LCHlch(79.13, 66.33, 102.63°)
OKLaboklab(81.51% -0.0461 0.1447)
OKLCHoklch(81.51% 0.152 107.7)
XYZxyz(47.0486, 55.1473, 13.3194)
Luminance0.5515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC942 #4246CD
analogous
#CD8342 #CDC942 #8CCD42
triadic
#CDC942 #42CDC9 #C942CD
tetradic
#CDC942 #42CD83 #4246CD #CD428C
square
#CDC942 #42CD83 #4246CD #CD428C
split-complementary
#CDC942 #428CCD #8342CD
monochromatic
#76731F #A6A22C #CDC942 #DAD772 #E7E5A3

Accessibility & contrast

On white

1.75
#CDC942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#CDC942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC942
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC942#FFFFFF#000000##000000
##CDC9421.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DCC64B
Tritanopia (blue-blind)
#DBBCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc942;
/* rgb */ color: rgb(205, 201, 66);
/* oklch */ color: oklch(81.5% 0.152 107.7);
Tailwind
colors: {
  custom: {
    50: '#e0d97e',
    500: '#cdc942',
    950: '#000000',
  },
}
SCSS
$custom: #cdc942;
$custom-light: #e0d97e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc942",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 66
  },
  "hsl": {
    "h": 58.273,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81506,
    "c": 0.15188,
    "h": 107.7
  },
  "luminance": 0.55146
}

Semantic roles & 50–950 ramp

primary
#CDC942
secondary
#35377E
accent
#4BE146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC942

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

Preview Lab → · Contrast checker → · Palette generator →

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