#CDC94F#CDC94F

#CDC94F is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.6% C 0.142 H 107.4°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#CDC94F
RGBrgb(205, 201, 79)
HSLhsl(58, 56%, 56%)
HSVhsv(58, 61%, 80%)
CMYKcmyk(0%, 2%, 61.5%, 19.6%)
CIE-LABlab(79.22, -13.73, 59.59)
CIE-LCHlch(79.22, 61.15, 102.98°)
OKLaboklab(81.62% -0.0425 0.1359)
OKLCHoklch(81.62% 0.142 107.4)
XYZxyz(47.4763, 55.3184, 15.5723)
Luminance0.5532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC94F #4F53CD
analogous
#CD8A4F #CDC94F #92CD4F
triadic
#CDC94F #4FCDC9 #C94FCD
tetradic
#CDC94F #4FCD8A #4F53CD #CD4F92
square
#CDC94F #4FCD8A #4F53CD #CD4F92
split-complementary
#CDC94F #4F92CD #8A4FCD
monochromatic
#7E7B24 #AEAA31 #CDC94F #DBD87F #E8E6AE

Accessibility & contrast

On white

1.74
#CDC94F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#CDC94F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC94F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC94F#FFFFFF#000000##000000
##CDC94F1.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C240
Deuteranopia (green-blind)
#DBC656
Tritanopia (blue-blind)
#DBBDAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc94f;
/* rgb */ color: rgb(205, 201, 79);
/* oklch */ color: oklch(81.6% 0.142 107.4);
Tailwind
colors: {
  custom: {
    50: '#dfd986',
    500: '#cdc94f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc94f;
$custom-light: #dfd986;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc94f",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 79
  },
  "hsl": {
    "h": 58.095,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81616,
    "c": 0.14238,
    "h": 107.4
  },
  "luminance": 0.55317
}

Semantic roles & 50–950 ramp

primary
#CDC94F
secondary
#3B3D86
accent
#4EDF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC94F

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

Preview Lab → · Contrast checker → · Palette generator →

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