#CCC851#CCC851

#CCC851 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.3% C 0.140 H 107.3°. Best body text is #000000 at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#CCC851
RGBrgb(204, 200, 81)
HSLhsl(58, 55%, 56%)
HSVhsv(58, 60%, 80%)
CMYKcmyk(0%, 2%, 60.3%, 20%)
CIE-LABlab(78.89, -13.51, 58.35)
CIE-LCHlch(78.89, 59.89, 103.04°)
OKLaboklab(81.34% -0.0416 0.1336)
OKLCHoklch(81.34% 0.14 107.3)
XYZxyz(47.0428, 54.7414, 15.8711)
Luminance0.5474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC851 #5155CC
analogous
#CC8A51 #CCC851 #92CC51
triadic
#CCC851 #51CCC8 #C851CC
tetradic
#CCC851 #51CC8A #5155CC #CC5192
square
#CCC851 #51CC8A #5155CC #CC5192
split-complementary
#CCC851 #5192CC #8A51CC
monochromatic
#7E7B25 #ADA933 #CCC851 #DAD780 #E8E6B0

Accessibility & contrast

On white

1.76
#CCC851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.95
#CCC851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC851
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC851#FFFFFF#000000##000000
##CCC8511.001.7611.9511.95
#FFFFFF1.761.0021.0021.00
#00000011.9521.001.001.00
##00000011.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C143
Deuteranopia (green-blind)
#DAC558
Tritanopia (blue-blind)
#DABCAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #ccc851;
/* rgb */ color: rgb(204, 200, 81);
/* oklch */ color: oklch(81.3% 0.140 107.3);
Tailwind
colors: {
  custom: {
    50: '#ded887',
    500: '#ccc851',
    950: '#000000',
  },
}
SCSS
$custom: #ccc851;
$custom-light: #ded887;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc851",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 58.049,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81337,
    "c": 0.13989,
    "h": 107.3
  },
  "luminance": 0.5474
}

Semantic roles & 50–950 ramp

primary
#CCC851
secondary
#3C3E86
accent
#4FDE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CCC851

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

Preview Lab → · Contrast checker → · Palette generator →

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