#CCC940#CCC940

#CCC940 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.4% C 0.153 H 108.1°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#CCC940
RGBrgb(204, 201, 64)
HSLhsl(59, 58%, 53%)
HSVhsv(59, 69%, 80%)
CMYKcmyk(0%, 1.5%, 68.6%, 20%)
CIE-LABlab(79.03, -15.03, 65.36)
CIE-LCHlch(79.03, 67.07, 102.95°)
OKLaboklab(81.41% -0.0477 0.1458)
OKLCHoklch(81.41% 0.153 108.1)
XYZxyz(46.7156, 54.9823, 13.0013)
Luminance0.5498 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC940 #4043CC
analogous
#CC8340 #CCC940 #89CC40
triadic
#CCC940 #40CCC9 #C940CC
tetradic
#CCC940 #40CC83 #4043CC #CC4089
square
#CCC940 #40CC83 #4043CC #CC4089
split-complementary
#CCC940 #4089CC #8340CC
monochromatic
#73711F #A3A12C #CCC940 #D9D770 #E6E4A1

Accessibility & contrast

On white

1.75
#CCC940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#CCC940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC940
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC940#FFFFFF#000000##000000
##CCC9401.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12A
Deuteranopia (green-blind)
#DCC64A
Tritanopia (blue-blind)
#DABCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc940;
/* rgb */ color: rgb(204, 201, 64);
/* oklch */ color: oklch(81.4% 0.153 108.1);
Tailwind
colors: {
  custom: {
    50: '#dfd97d',
    500: '#ccc940',
    950: '#000000',
  },
}
SCSS
$custom: #ccc940;
$custom-light: #dfd97d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc940",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 58.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81407,
    "c": 0.15336,
    "h": 108.1
  },
  "luminance": 0.54981
}

Semantic roles & 50–950 ramp

primary
#CCC940
secondary
#34367C
accent
#4AE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC940

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

Preview Lab → · Contrast checker → · Palette generator →

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