#CDC051#CDC051

#CDC051 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.132 H 102.7°. Best body text is #000000 at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#CDC051
RGBrgb(205, 192, 81)
HSLhsl(54, 55%, 56%)
HSVhsv(54, 60%, 80%)
CMYKcmyk(0%, 6.3%, 60.5%, 19.6%)
CIE-LABlab(76.84, -9.02, 56.14)
CIE-LCHlch(76.84, 56.86, 99.13°)
OKLaboklab(79.73% -0.0289 0.1288)
OKLCHoklch(79.73% 0.132 102.7)
XYZxyz(45.5133, 51.2742, 15.2825)
Luminance0.5127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC051 #515ECD
analogous
#CD8251 #CDC051 #9CCD51
triadic
#CDC051 #51CDC0 #C051CD
tetradic
#CDC051 #51CD82 #515ECD #CD519C
square
#CDC051 #51CD82 #515ECD #CD519C
split-complementary
#CDC051 #519CCD #8251CD
monochromatic
#7F7625 #AFA232 #CDC051 #DBD181 #E8E2B0

Accessibility & contrast

On white

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

On black

11.25
#CDC051 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC051
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC051#FFFFFF#000000##000000
##CDC0511.001.8711.2511.25
#FFFFFF1.871.0021.0021.00
#00000011.2521.001.001.00
##00000011.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA45
Deuteranopia (green-blind)
#D4C057
Tritanopia (blue-blind)
#DBB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc051;
/* rgb */ color: rgb(205, 192, 81);
/* oklch */ color: oklch(79.7% 0.132 102.7);
Tailwind
colors: {
  custom: {
    50: '#dfd286',
    500: '#cdc051',
    950: '#000000',
  },
}
SCSS
$custom: #cdc051;
$custom-light: #dfd286;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc051",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 81
  },
  "hsl": {
    "h": 53.71,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.79729,
    "c": 0.13203,
    "h": 102.7
  },
  "luminance": 0.51272
}

Semantic roles & 50–950 ramp

primary
#CDC051
secondary
#3B4387
accent
#59DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC051

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

Preview Lab → · Contrast checker → · Palette generator →

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