#CCD87B#CCD87B

#CCD87B is a very light, moderate yellow. Relative luminance 0.634; OKLCH L 85.3% C 0.118 H 115.0°. Best body text is #000000 at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#CCD87B
RGBrgb(204, 216, 123)
HSLhsl(68, 54%, 66%)
HSVhsv(68, 43%, 85%)
CMYKcmyk(5.6%, 0%, 43.1%, 15.3%)
CIE-LABlab(83.64, -17.86, 44.35)
CIE-LCHlch(83.64, 47.81, 111.94°)
OKLaboklab(85.27% -0.0499 0.1071)
OKLCHoklch(85.27% 0.118 115)
XYZxyz(53.0334, 63.3798, 28.1748)
Luminance0.6338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD87B #877BD8
analogous
#D8B67B #CCD87B #9ED87B
triadic
#CCD87B #7BCCD8 #D87BCC
tetradic
#CCD87B #7BD8B6 #877BD8 #D87B9E
square
#CCD87B #7BD8B6 #877BD8 #D87B9E
split-complementary
#CCD87B #7B9ED8 #B67BD8
monochromatic
#98A731 #BACA4C #CCD87B #DEE6AA #F1F4D9

Accessibility & contrast

On white

1.54
#CCD87B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.68
#CCD87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD87B
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD87B#FFFFFF#000000##000000
##CCD87B1.001.5413.6813.68
#FFFFFF1.541.0021.0021.00
#00000013.6821.001.001.00
##00000013.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D073
Deuteranopia (green-blind)
#E3D180
Tritanopia (blue-blind)
#D6CFC2
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #ccd87b;
/* rgb */ color: rgb(204, 216, 123);
/* oklch */ color: oklch(85.3% 0.118 115.0);
Tailwind
colors: {
  custom: {
    50: '#dde4a3',
    500: '#ccd87b',
    950: '#000000',
  },
}
SCSS
$custom: #ccd87b;
$custom-light: #dde4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd87b",
  "rgb": {
    "r": 204,
    "g": 216,
    "b": 123
  },
  "hsl": {
    "h": 67.742,
    "s": 54.386,
    "l": 66.471
  },
  "oklch": {
    "l": 0.85274,
    "c": 0.11813,
    "h": 115
  },
  "luminance": 0.63379
}

Semantic roles & 50–950 ramp

primary
#CCD87B
secondary
#594DAB
accent
#24C238
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CCD87B

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

Preview Lab → · Contrast checker → · Palette generator →

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