#CDD251#CDD251

#CDD251 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.6% C 0.150 H 111.3°. Best body text is #000000 at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#CDD251
RGBrgb(205, 210, 81)
HSLhsl(62, 59%, 57%)
HSVhsv(62, 61%, 82%)
CMYKcmyk(2.4%, 0%, 61.4%, 17.6%)
CIE-LABlab(81.66, -18.09, 61.36)
CIE-LCHlch(81.66, 63.97, 106.43°)
OKLaboklab(83.56% -0.0546 0.1399)
OKLCHoklch(83.56% 0.15 111.3)
XYZxyz(49.7100, 59.6676, 16.6814)
Luminance0.5967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD251 #5651D2
analogous
#D29751 #CDD251 #8CD251
triadic
#CDD251 #51CDD2 #D251CD
tetradic
#CDD251 #51D297 #5651D2 #D2518C
square
#CDD251 #51D297 #5651D2 #D2518C
split-complementary
#CDD251 #518CD2 #9751D2
monochromatic
#828623 #B1B72F #CDD251 #DBDF82 #E9EBB2

Accessibility & contrast

On white

1.62
#CDD251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.93
#CDD251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD251
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD251#FFFFFF#000000##000000
##CDD2511.001.6212.9312.93
#FFFFFF1.621.0021.0021.00
#00000012.9321.001.001.00
##00000012.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C941
Deuteranopia (green-blind)
#E2CD59
Tritanopia (blue-blind)
#DAC6B7
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cdd251;
/* rgb */ color: rgb(205, 210, 81);
/* oklch */ color: oklch(83.6% 0.150 111.3);
Tailwind
colors: {
  custom: {
    50: '#dfdf87',
    500: '#cdd251',
    950: '#000000',
  },
}
SCSS
$custom: #cdd251;
$custom-light: #dfdf87;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd251",
  "rgb": {
    "r": 205,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 62.326,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83563,
    "c": 0.15019,
    "h": 111.3
  },
  "luminance": 0.59666
}

Semantic roles & 50–950 ramp

primary
#CDD251
secondary
#3E3B8D
accent
#46E24C
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CDD251

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

Preview Lab → · Contrast checker → · Palette generator →

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