#CDC251#CDC251

#CDC251 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.134 H 103.8°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CDC251
RGBrgb(205, 194, 81)
HSLhsl(55, 55%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 5.4%, 60.5%, 19.6%)
CIE-LABlab(77.38, -10.04, 56.72)
CIE-LCHlch(77.38, 57.60, 100.04°)
OKLaboklab(80.15% -0.0319 0.1301)
OKLCHoklch(80.15% 0.134 103.8)
XYZxyz(45.9555, 52.1585, 15.4298)
Luminance0.5216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC251 #515CCD
analogous
#CD8451 #CDC251 #9ACD51
triadic
#CDC251 #51CDC2 #C251CD
tetradic
#CDC251 #51CD84 #515CCD #CD519A
square
#CDC251 #51CD84 #515CCD #CD519A
split-complementary
#CDC251 #519ACD #8451CD
monochromatic
#7F7725 #AFA432 #CDC251 #DBD381 #E8E3B0

Accessibility & contrast

On white

1.84
#CDC251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CDC251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC251
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC251#FFFFFF#000000##000000
##CDC2511.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D6C257
Tritanopia (blue-blind)
#DBB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc251;
/* rgb */ color: rgb(205, 194, 81);
/* oklch */ color: oklch(80.2% 0.134 103.8);
Tailwind
colors: {
  custom: {
    50: '#dfd486',
    500: '#cdc251',
    950: '#000000',
  },
}
SCSS
$custom: #cdc251;
$custom-light: #dfd486;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc251",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 54.677,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.8015,
    "c": 0.1339,
    "h": 103.8
  },
  "luminance": 0.52157
}

Semantic roles & 50–950 ramp

primary
#CDC251
secondary
#3B4287
accent
#56DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC251

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

Preview Lab → · Contrast checker → · Palette generator →

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