#CCC840#CCC840

#CCC840 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.2% C 0.152 H 107.7°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#CCC840
RGBrgb(204, 200, 64)
HSLhsl(58, 58%, 53%)
HSVhsv(58, 69%, 80%)
CMYKcmyk(0%, 2%, 68.6%, 20%)
CIE-LABlab(78.76, -14.53, 65.09)
CIE-LCHlch(78.76, 66.70, 102.58°)
OKLaboklab(81.19% -0.0463 0.1452)
OKLCHoklch(81.19% 0.152 107.7)
XYZxyz(46.4832, 54.5176, 12.9239)
Luminance0.5452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC840 #4044CC
analogous
#CC8240 #CCC840 #8ACC40
triadic
#CCC840 #40CCC8 #C840CC
tetradic
#CCC840 #40CC82 #4044CC #CC408A
square
#CCC840 #40CC82 #4044CC #CC408A
split-complementary
#CCC840 #408ACC #8240CC
monochromatic
#73711F #A3A02C #CCC840 #D9D670 #E6E4A1

Accessibility & contrast

On white

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

On black

11.90
#CCC840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC840
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC840#FFFFFF#000000##000000
##CCC8401.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DBC549
Tritanopia (blue-blind)
#DABBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #ccc840;
/* rgb */ color: rgb(204, 200, 64);
/* oklch */ color: oklch(81.2% 0.152 107.7);
Tailwind
colors: {
  custom: {
    50: '#dfd87d',
    500: '#ccc840',
    950: '#000000',
  },
}
SCSS
$custom: #ccc840;
$custom-light: #dfd87d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc840",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 58.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81193,
    "c": 0.15239,
    "h": 107.7
  },
  "luminance": 0.54516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC840

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

Preview Lab → · Contrast checker → · Palette generator →

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