#CDC151#CDC151

#CDC151 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.133 H 103.2°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#CDC151
RGBrgb(205, 193, 81)
HSLhsl(54, 55%, 56%)
HSVhsv(54, 60%, 80%)
CMYKcmyk(0%, 5.9%, 60.5%, 19.6%)
CIE-LABlab(77.11, -9.53, 56.43)
CIE-LCHlch(77.11, 57.23, 99.59°)
OKLaboklab(79.94% -0.0304 0.1294)
OKLCHoklch(79.94% 0.133 103.2)
XYZxyz(45.7337, 51.7148, 15.3559)
Luminance0.5171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC151 #515DCD
analogous
#CD8351 #CDC151 #9BCD51
triadic
#CDC151 #51CDC1 #C151CD
tetradic
#CDC151 #51CD83 #515DCD #CD519B
square
#CDC151 #51CD83 #515DCD #CD519B
split-complementary
#CDC151 #519BCD #8351CD
monochromatic
#7F7625 #AFA332 #CDC151 #DBD281 #E8E3B0

Accessibility & contrast

On white

1.85
#CDC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#CDC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC151
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC151#FFFFFF#000000##000000
##CDC1511.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB44
Deuteranopia (green-blind)
#D5C157
Tritanopia (blue-blind)
#DBB5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc151;
/* rgb */ color: rgb(205, 193, 81);
/* oklch */ color: oklch(79.9% 0.133 103.2);
Tailwind
colors: {
  custom: {
    50: '#dfd386',
    500: '#cdc151',
    950: '#000000',
  },
}
SCSS
$custom: #cdc151;
$custom-light: #dfd386;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc151",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 54.194,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.79939,
    "c": 0.13296,
    "h": 103.2
  },
  "luminance": 0.51713
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC151

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

Preview Lab → · Contrast checker → · Palette generator →

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