#CCD851#CCD851

#CCD851 is a very light, vivid yellow. Relative luminance 0.625; OKLCH L 84.8% C 0.157 H 114.1°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#CCD851
RGBrgb(204, 216, 81)
HSLhsl(65, 63%, 58%)
HSVhsv(65, 63%, 85%)
CMYKcmyk(5.6%, 0%, 62.5%, 15.3%)
CIE-LABlab(83.20, -21.44, 62.98)
CIE-LCHlch(83.20, 66.53, 108.80°)
OKLaboklab(84.78% -0.064 0.1434)
OKLCHoklch(84.78% 0.157 114.1)
XYZxyz(50.9442, 62.5441, 17.1715)
Luminance0.6254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD851 #5D51D8
analogous
#D8A051 #CCD851 #88D851
triadic
#CCD851 #51CCD8 #D851CC
tetradic
#CCD851 #51D8A0 #5D51D8 #D85188
square
#CCD851 #51D8A0 #5D51D8 #D85188
split-complementary
#CCD851 #5188D8 #A051D8
monochromatic
#858F20 #B3C12B #CCD851 #DBE383 #E9EEB5

Accessibility & contrast

On white

1.55
#CCD851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#CCD851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD851
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD851#FFFFFF#000000##000000
##CCD8511.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CE40
Deuteranopia (green-blind)
#E6D15A
Tritanopia (blue-blind)
#D9CCBC
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #ccd851;
/* rgb */ color: rgb(204, 216, 81);
/* oklch */ color: oklch(84.8% 0.157 114.1);
Tailwind
colors: {
  custom: {
    50: '#dee388',
    500: '#ccd851',
    950: '#000000',
  },
}
SCSS
$custom: #ccd851;
$custom-light: #dee388;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd851",
  "rgb": {
    "r": 204,
    "g": 216,
    "b": 81
  },
  "hsl": {
    "h": 65.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.8478,
    "c": 0.157,
    "h": 114.1
  },
  "luminance": 0.62543
}

Semantic roles & 50–950 ramp

primary
#CCD851
secondary
#413994
accent
#41E650
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CCD851

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

Preview Lab → · Contrast checker → · Palette generator →

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