#CCD151#CCD151

#CCD151 is a very light, vivid yellow. Relative luminance 0.590; OKLCH L 83.3% C 0.149 H 111.3°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#CCD151
RGBrgb(204, 209, 81)
HSLhsl(62, 58%, 57%)
HSVhsv(62, 61%, 82%)
CMYKcmyk(2.4%, 0%, 61.2%, 18%)
CIE-LABlab(81.31, -18.01, 60.96)
CIE-LCHlch(81.31, 63.57, 106.46°)
OKLaboklab(83.27% -0.0544 0.1391)
OKLCHoklch(83.27% 0.149 111.3)
XYZxyz(49.1889, 59.0335, 16.5864)
Luminance0.5903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD151 #5651D1
analogous
#D19651 #CCD151 #8CD151
triadic
#CCD151 #51CCD1 #D151CC
tetradic
#CCD151 #51D196 #5651D1 #D1518C
square
#CCD151 #51D196 #5651D1 #D1518C
split-complementary
#CCD151 #518CD1 #9651D1
monochromatic
#818523 #B0B530 #CCD151 #DADE81 #E8EBB2

Accessibility & contrast

On white

1.64
#CCD151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#CCD151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD151
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD151#FFFFFF#000000##000000
##CCD1511.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C841
Deuteranopia (green-blind)
#E1CC59
Tritanopia (blue-blind)
#D9C5B6
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ccd151;
/* rgb */ color: rgb(204, 209, 81);
/* oklch */ color: oklch(83.3% 0.149 111.3);
Tailwind
colors: {
  custom: {
    50: '#dede87',
    500: '#ccd151',
    950: '#000000',
  },
}
SCSS
$custom: #ccd151;
$custom-light: #dede87;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd151",
  "rgb": {
    "r": 204,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 62.344,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.83267,
    "c": 0.14933,
    "h": 111.3
  },
  "luminance": 0.59032
}

Semantic roles & 50–950 ramp

primary
#CCD151
secondary
#3E3B8B
accent
#46E14C
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CCD151

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

Preview Lab → · Contrast checker → · Palette generator →

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