#CCD251#CCD251

#CCD251 is a very light, vivid yellow. Relative luminance 0.595; OKLCH L 83.5% C 0.150 H 111.8°. Best body text is #000000 at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#CCD251
RGBrgb(204, 210, 81)
HSLhsl(63, 59%, 57%)
HSVhsv(63, 61%, 82%)
CMYKcmyk(2.9%, 0%, 61.4%, 17.6%)
CIE-LABlab(81.58, -18.50, 61.25)
CIE-LCHlch(81.58, 63.98, 106.81°)
OKLaboklab(83.48% -0.0557 0.1397)
OKLCHoklch(83.48% 0.15 111.8)
XYZxyz(49.4350, 59.5258, 16.6685)
Luminance0.5952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD251 #5751D2
analogous
#D29851 #CCD251 #8BD251
triadic
#CCD251 #51CCD2 #D251CC
tetradic
#CCD251 #51D298 #5751D2 #D2518B
square
#CCD251 #51D298 #5751D2 #D2518B
split-complementary
#CCD251 #518BD2 #9851D2
monochromatic
#818623 #B0B72F #CCD251 #DADF82 #E9EBB2

Accessibility & contrast

On white

1.63
#CCD251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.91
#CCD251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD251
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD251#FFFFFF#000000##000000
##CCD2511.001.6312.9112.91
#FFFFFF1.631.0021.0021.00
#00000012.9121.001.001.00
##00000012.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccd251;
/* rgb */ color: rgb(204, 210, 81);
/* oklch */ color: oklch(83.5% 0.150 111.8);
Tailwind
colors: {
  custom: {
    50: '#dedf87',
    500: '#ccd251',
    950: '#000000',
  },
}
SCSS
$custom: #ccd251;
$custom-light: #dedf87;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd251",
  "rgb": {
    "r": 204,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 62.791,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83482,
    "c": 0.1504,
    "h": 111.8
  },
  "luminance": 0.59525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCD251

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

Preview Lab → · Contrast checker → · Palette generator →

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