#CCC542#CCC542

#CCC542 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.6% C 0.148 H 106.3°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#CCC542
RGBrgb(204, 197, 66)
HSLhsl(57, 58%, 53%)
HSVhsv(57, 68%, 80%)
CMYKcmyk(0%, 3.4%, 67.6%, 20%)
CIE-LABlab(77.97, -12.91, 63.54)
CIE-LCHlch(77.97, 64.84, 101.48°)
OKLaboklab(80.57% -0.0415 0.1422)
OKLCHoklch(80.57% 0.148 106.3)
XYZxyz(45.8532, 53.1648, 12.9997)
Luminance0.5316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC542 #4249CC
analogous
#CC8042 #CCC542 #8ECC42
triadic
#CCC542 #42CCC5 #C542CC
tetradic
#CCC542 #42CC80 #4249CC #CC428E
square
#CCC542 #42CC80 #4249CC #CC428E
split-complementary
#CCC542 #428ECC #8042CC
monochromatic
#74701F #A49E2C #CCC542 #D9D472 #E6E3A2

Accessibility & contrast

On white

1.81
#CCC542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.63
#CCC542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC542
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC542#FFFFFF#000000##000000
##CCC5421.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2F
Deuteranopia (green-blind)
#D8C34B
Tritanopia (blue-blind)
#DBB8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #ccc542;
/* rgb */ color: rgb(204, 197, 66);
/* oklch */ color: oklch(80.6% 0.148 106.3);
Tailwind
colors: {
  custom: {
    50: '#dfd67e',
    500: '#ccc542',
    950: '#000000',
  },
}
SCSS
$custom: #ccc542;
$custom-light: #dfd67e;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc542",
  "rgb": {
    "r": 204,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 56.957,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.80567,
    "c": 0.14819,
    "h": 106.3
  },
  "luminance": 0.53163
}

Semantic roles & 50–950 ramp

primary
#CCC542
secondary
#35397D
accent
#4FE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC542

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

Preview Lab → · Contrast checker → · Palette generator →

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