#C8CC42#C8CC42

#C8CC42 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.7% C 0.156 H 111.0°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#C8CC42
RGBrgb(200, 204, 66)
HSLhsl(62, 58%, 53%)
HSVhsv(62, 68%, 80%)
CMYKcmyk(2%, 0%, 67.6%, 20%)
CIE-LABlab(79.53, -18.09, 65.01)
CIE-LCHlch(79.53, 67.48, 105.55°)
OKLaboklab(81.73% -0.0559 0.1455)
OKLCHoklch(81.73% 0.156 111)
XYZxyz(46.3971, 55.8596, 13.4911)
Luminance0.5586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8CC42 #4642CC
analogous
#CC8B42 #C8CC42 #83CC42
triadic
#C8CC42 #42C8CC #CC42C8
tetradic
#C8CC42 #42CC8B #4642CC #CC4283
square
#C8CC42 #42CC8B #4642CC #CC4283
split-complementary
#C8CC42 #4283CC #8B42CC
monochromatic
#72741F #A1A42C #C8CC42 #D6D972 #E4E6A2

Accessibility & contrast

On white

1.73
#C8CC42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#C8CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8CC42
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8CC42#FFFFFF#000000##000000
##C8CC421.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC32D
Deuteranopia (green-blind)
#DDC74C
Tritanopia (blue-blind)
#D6C0B0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #c8cc42;
/* rgb */ color: rgb(200, 204, 66);
/* oklch */ color: oklch(81.7% 0.156 111.0);
Tailwind
colors: {
  custom: {
    50: '#dcdb7e',
    500: '#c8cc42',
    950: '#000000',
  },
}
SCSS
$custom: #c8cc42;
$custom-light: #dcdb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c8cc42",
  "rgb": {
    "r": 200,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 61.739,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81734,
    "c": 0.15583,
    "h": 111
  },
  "luminance": 0.55858
}

Semantic roles & 50–950 ramp

primary
#C8CC42
secondary
#37357D
accent
#47E14C
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C8CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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