#CCC142#CCC142

#CCC142 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.7% C 0.144 H 104.3°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#CCC142
RGBrgb(204, 193, 66)
HSLhsl(55, 58%, 53%)
HSVhsv(55, 68%, 80%)
CMYKcmyk(0%, 5.4%, 67.6%, 20%)
CIE-LABlab(76.90, -10.87, 62.46)
CIE-LCHlch(76.90, 63.40, 99.88°)
OKLaboklab(79.72% -0.0358 0.14)
OKLCHoklch(79.72% 0.144 104.3)
XYZxyz(44.9570, 51.3724, 12.7009)
Luminance0.5137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC142 #424DCC
analogous
#CC7C42 #CCC142 #92CC42
triadic
#CCC142 #42CCC1 #C142CC
tetradic
#CCC142 #42CC7C #424DCC #CC4292
square
#CCC142 #42CC7C #424DCC #CC4292
split-complementary
#CCC142 #4292CC #7C42CC
monochromatic
#746D1F #A49B2C #CCC142 #D9D172 #E6E1A2

Accessibility & contrast

On white

1.86
#CCC142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#CCC142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC142
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC142#FFFFFF#000000##000000
##CCC1421.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA30
Deuteranopia (green-blind)
#D5C14A
Tritanopia (blue-blind)
#DBB4A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc142;
/* rgb */ color: rgb(204, 193, 66);
/* oklch */ color: oklch(79.7% 0.144 104.3);
Tailwind
colors: {
  custom: {
    50: '#dfd37d',
    500: '#ccc142',
    950: '#000000',
  },
}
SCSS
$custom: #ccc142;
$custom-light: #dfd37d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc142",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 55.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79716,
    "c": 0.14447,
    "h": 104.3
  },
  "luminance": 0.51371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC142

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

Preview Lab → · Contrast checker → · Palette generator →

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