#CCC842#CCC842

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

Color values

HEX#CCC842
RGBrgb(204, 200, 66)
HSLhsl(58, 58%, 53%)
HSVhsv(58, 68%, 80%)
CMYKcmyk(0%, 2%, 67.6%, 20%)
CIE-LABlab(78.78, -14.42, 64.35)
CIE-LCHlch(78.78, 65.95, 102.63°)
OKLaboklab(81.21% -0.0458 0.144)
OKLCHoklch(81.21% 0.151 107.7)
XYZxyz(46.5412, 54.5408, 13.2290)
Luminance0.5454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC842 #4246CC
analogous
#CC8342 #CCC842 #8BCC42
triadic
#CCC842 #42CCC8 #C842CC
tetradic
#CCC842 #42CC83 #4246CC #CC428B
square
#CCC842 #42CC83 #4246CC #CC428B
split-complementary
#CCC842 #428BCC #8342CC
monochromatic
#74721F #A4A12C #CCC842 #D9D672 #E6E4A2

Accessibility & contrast

On white

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

On black

11.91
#CCC842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC842
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC842#FFFFFF#000000##000000
##CCC8421.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccc842;
/* rgb */ color: rgb(204, 200, 66);
/* oklch */ color: oklch(81.2% 0.151 107.7);
Tailwind
colors: {
  custom: {
    50: '#dfd87e',
    500: '#ccc842',
    950: '#000000',
  },
}
SCSS
$custom: #ccc842;
$custom-light: #dfd87e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc842",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 58.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81208,
    "c": 0.15106,
    "h": 107.7
  },
  "luminance": 0.54539
}

Semantic roles & 50–950 ramp

primary
#CCC842
secondary
#35377D
accent
#4CE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC842

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

Preview Lab → · Contrast checker → · Palette generator →

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