#CCD781#CCD781

#CCD781 is a very light, moderate yellow. Relative luminance 0.630; OKLCH L 85.2% C 0.110 H 114.7°. Best body text is #000000 at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#CCD781
RGBrgb(204, 215, 129)
HSLhsl(68, 52%, 67%)
HSVhsv(68, 40%, 84%)
CMYKcmyk(5.1%, 0%, 40%, 15.7%)
CIE-LABlab(83.45, -16.71, 41.15)
CIE-LCHlch(83.45, 44.41, 112.11°)
OKLaboklab(85.15% -0.0462 0.1002)
OKLCHoklch(85.15% 0.11 114.7)
XYZxyz(53.1651, 63.0238, 30.1287)
Luminance0.6302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD781 #8C81D7
analogous
#D7B781 #CCD781 #A1D781
triadic
#CCD781 #81CCD7 #D781CC
tetradic
#CCD781 #81D7B7 #8C81D7 #D781A1
square
#CCD781 #81D7B7 #8C81D7 #D781A1
split-complementary
#CCD781 #81A1D7 #B781D7
monochromatic
#9AA835 #B9C853 #CCD781 #DFE6AF #F2F4DE

Accessibility & contrast

On white

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

On black

13.60
#CCD781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD781
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD781#FFFFFF#000000##000000
##CCD7811.001.5413.6013.60
#FFFFFF1.541.0021.0021.00
#00000013.6021.001.001.00
##00000013.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CF7A
Deuteranopia (green-blind)
#E1D185
Tritanopia (blue-blind)
#D5CEC2
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #ccd781;
/* rgb */ color: rgb(204, 215, 129);
/* oklch */ color: oklch(85.2% 0.110 114.7);
Tailwind
colors: {
  custom: {
    50: '#dde3a7',
    500: '#ccd781',
    950: '#000000',
  },
}
SCSS
$custom: #ccd781;
$custom-light: #dde3a7;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd781",
  "rgb": {
    "r": 204,
    "g": 215,
    "b": 129
  },
  "hsl": {
    "h": 67.674,
    "s": 51.807,
    "l": 67.451
  },
  "oklch": {
    "l": 0.85151,
    "c": 0.11031,
    "h": 114.7
  },
  "luminance": 0.63023
}

Semantic roles & 50–950 ramp

primary
#CCD781
secondary
#5C50AC
accent
#26BF3A
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #CCD781

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

Preview Lab → · Contrast checker → · Palette generator →

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