#C0CC42#C0CC42

#C0CC42 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.1% C 0.158 H 114.2°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#C0CC42
RGBrgb(192, 204, 66)
HSLhsl(65, 58%, 53%)
HSVhsv(65, 68%, 80%)
CMYKcmyk(5.9%, 0%, 67.6%, 20%)
CIE-LABlab(78.92, -21.42, 64.19)
CIE-LCHlch(78.92, 67.66, 108.45°)
OKLaboklab(81.09% -0.0647 0.144)
OKLCHoklch(81.09% 0.158 114.2)
XYZxyz(44.3157, 54.7864, 13.3935)
Luminance0.5479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0CC42 #4E42CC
analogous
#CC9342 #C0CC42 #7BCC42
triadic
#C0CC42 #42C0CC #CC42C0
tetradic
#C0CC42 #42CC93 #4E42CC #CC427B
square
#C0CC42 #42CC93 #4E42CC #CC427B
split-complementary
#C0CC42 #427BCC #9342CC
monochromatic
#6D741F #9AA42C #C0CC42 #D0D972 #E0E6A2

Accessibility & contrast

On white

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

On black

11.96
#C0CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0CC42
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0CC42#FFFFFF#000000##000000
##C0CC421.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22D
Deuteranopia (green-blind)
#DAC54C
Tritanopia (blue-blind)
#CCC0B0
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #c0cc42;
/* rgb */ color: rgb(192, 204, 66);
/* oklch */ color: oklch(81.1% 0.158 114.2);
Tailwind
colors: {
  custom: {
    50: '#d6db7e',
    500: '#c0cc42',
    950: '#000000',
  },
}
SCSS
$custom: #c0cc42;
$custom-light: #d6db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c0cc42",
  "rgb": {
    "r": 192,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 65.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.8109,
    "c": 0.15784,
    "h": 114.2
  },
  "luminance": 0.54786
}

Semantic roles & 50–950 ramp

primary
#C0CC42
secondary
#3B357D
accent
#47E154
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15150A
muted
#84847D

Preview Lab

Preview with #C0CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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