#C8CC51#C8CC51

#C8CC51 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.9% C 0.145 H 111.0°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#C8CC51
RGBrgb(200, 204, 81)
HSLhsl(62, 55%, 56%)
HSVhsv(62, 60%, 80%)
CMYKcmyk(2%, 0%, 60.3%, 20%)
CIE-LABlab(79.65, -17.17, 59.08)
CIE-LCHlch(79.65, 61.52, 106.21°)
OKLaboklab(81.86% -0.0518 0.1352)
OKLCHoklch(81.86% 0.145 111)
XYZxyz(46.8988, 56.0603, 16.1332)
Luminance0.5606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8CC51 #5551CC
analogous
#CC9251 #C8CC51 #8ACC51
triadic
#C8CC51 #51C8CC #CC51C8
tetradic
#C8CC51 #51CC92 #5551CC #CC518A
square
#C8CC51 #51CC92 #5551CC #CC518A
split-complementary
#C8CC51 #518ACC #9251CC
monochromatic
#7B7E25 #A9AD33 #C8CC51 #D7DA80 #E6E8B0

Accessibility & contrast

On white

1.72
#C8CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#C8CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8CC51
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8CC51#FFFFFF#000000##000000
##C8CC511.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC442
Deuteranopia (green-blind)
#DCC759
Tritanopia (blue-blind)
#D5C0B2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c8cc51;
/* rgb */ color: rgb(200, 204, 81);
/* oklch */ color: oklch(81.9% 0.145 111.0);
Tailwind
colors: {
  custom: {
    50: '#dbdb87',
    500: '#c8cc51',
    950: '#000000',
  },
}
SCSS
$custom: #c8cc51;
$custom-light: #dbdb87;
$custom-dark: #000000;
JSON
{
  "hex": "#c8cc51",
  "rgb": {
    "r": 200,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 61.951,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81862,
    "c": 0.14475,
    "h": 111
  },
  "luminance": 0.56059
}

Semantic roles & 50–950 ramp

primary
#C8CC51
secondary
#3E3C86
accent
#4ADE4F
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #C8CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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