#CCC042#CCC042

#CCC042 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.5% C 0.144 H 103.8°. Best body text is #000000 at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#CCC042
RGBrgb(204, 192, 66)
HSLhsl(55, 58%, 53%)
HSVhsv(55, 68%, 80%)
CMYKcmyk(0%, 5.9%, 67.6%, 20%)
CIE-LABlab(76.64, -10.36, 62.19)
CIE-LCHlch(76.64, 63.05, 99.46°)
OKLaboklab(79.51% -0.0343 0.1394)
OKLCHoklch(79.51% 0.144 103.8)
XYZxyz(44.7367, 50.9317, 12.6275)
Luminance0.5093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC042 #424ECC
analogous
#CC7B42 #CCC042 #93CC42
triadic
#CCC042 #42CCC0 #C042CC
tetradic
#CCC042 #42CC7B #424ECC #CC4293
square
#CCC042 #42CC7B #424ECC #CC4293
split-complementary
#CCC042 #4293CC #7B42CC
monochromatic
#746D1F #A49A2C #CCC042 #D9D072 #E6E0A2

Accessibility & contrast

On white

1.88
#CCC042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.19
#CCC042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC042
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC042#FFFFFF#000000##000000
##CCC0421.001.8811.1911.19
#FFFFFF1.881.0021.0021.00
#00000011.1921.001.001.00
##00000011.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#DBB3A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc042;
/* rgb */ color: rgb(204, 192, 66);
/* oklch */ color: oklch(79.5% 0.144 103.8);
Tailwind
colors: {
  custom: {
    50: '#dfd27d',
    500: '#ccc042',
    950: '#000000',
  },
}
SCSS
$custom: #ccc042;
$custom-light: #dfd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc042",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 54.783,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79505,
    "c": 0.14356,
    "h": 103.8
  },
  "luminance": 0.5093
}

Semantic roles & 50–950 ramp

primary
#CCC042
secondary
#353B7D
accent
#54E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC042

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

Preview Lab → · Contrast checker → · Palette generator →

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