#C0CC40#C0CC40

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

Color values

HEX#C0CC40
RGBrgb(192, 204, 64)
HSLhsl(65, 58%, 53%)
HSVhsv(65, 69%, 80%)
CMYKcmyk(5.9%, 0%, 68.6%, 20%)
CIE-LABlab(78.90, -21.53, 64.92)
CIE-LCHlch(78.90, 68.40, 108.35°)
OKLaboklab(81.08% -0.0652 0.1452)
OKLCHoklch(81.08% 0.159 114.2)
XYZxyz(44.2577, 54.7632, 13.0884)
Luminance0.5476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0CC40 #4C40CC
analogous
#CC9240 #C0CC40 #7ACC40
triadic
#C0CC40 #40C0CC #CC40C0
tetradic
#C0CC40 #40CC92 #4C40CC #CC407A
square
#C0CC40 #40CC92 #4C40CC #CC407A
split-complementary
#C0CC40 #407ACC #9240CC
monochromatic
#6C731F #99A32C #C0CC40 #D0D970 #E0E6A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C0CC40#FFFFFF#000000##000000
##C0CC401.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)
#DBC22A
Deuteranopia (green-blind)
#DAC54A
Tritanopia (blue-blind)
#CCC0B0
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #c0cc40;
/* rgb */ color: rgb(192, 204, 64);
/* oklch */ color: oklch(81.1% 0.159 114.2);
Tailwind
colors: {
  custom: {
    50: '#d6db7d',
    500: '#c0cc40',
    950: '#000000',
  },
}
SCSS
$custom: #c0cc40;
$custom-light: #d6db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#c0cc40",
  "rgb": {
    "r": 192,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 65.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81075,
    "c": 0.15918,
    "h": 114.2
  },
  "luminance": 0.54762
}

Semantic roles & 50–950 ramp

primary
#C0CC40
secondary
#3B347C
accent
#47E154
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C0CC40

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

Preview Lab → · Contrast checker → · Palette generator →

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