#CDC949#CDC949

#CDC949 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.147 H 107.5°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#CDC949
RGBrgb(205, 201, 73)
HSLhsl(58, 57%, 55%)
HSVhsv(58, 64%, 80%)
CMYKcmyk(0%, 2%, 64.4%, 19.6%)
CIE-LABlab(79.18, -14.11, 62.03)
CIE-LCHlch(79.18, 63.61, 102.81°)
OKLaboklab(81.56% -0.0442 0.1401)
OKLCHoklch(81.56% 0.147 107.5)
XYZxyz(47.2677, 55.2350, 14.4736)
Luminance0.5523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC949 #494DCD
analogous
#CD8749 #CDC949 #8FCD49
triadic
#CDC949 #49CDC9 #C949CD
tetradic
#CDC949 #49CD87 #494DCD #CD498F
square
#CDC949 #49CD87 #494DCD #CD498F
split-complementary
#CDC949 #498FCD #8749CD
monochromatic
#7A7722 #AAA62F #CDC949 #DAD779 #E7E5A9

Accessibility & contrast

On white

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

On black

12.05
#CDC949 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC949
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC949#FFFFFF#000000##000000
##CDC9491.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C138
Deuteranopia (green-blind)
#DBC651
Tritanopia (blue-blind)
#DBBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc949;
/* rgb */ color: rgb(205, 201, 73);
/* oklch */ color: oklch(81.6% 0.147 107.5);
Tailwind
colors: {
  custom: {
    50: '#dfd982',
    500: '#cdc949',
    950: '#000000',
  },
}
SCSS
$custom: #cdc949;
$custom-light: #dfd982;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc949",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 73
  },
  "hsl": {
    "h": 58.182,
    "s": 56.897,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81563,
    "c": 0.14696,
    "h": 107.5
  },
  "luminance": 0.55233
}

Semantic roles & 50–950 ramp

primary
#CDC949
secondary
#383A82
accent
#4CE048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC949

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

Preview Lab → · Contrast checker → · Palette generator →

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