#CCB542#CCB542

#CCB542 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 77.2% C 0.134 H 97.8°. Best body text is #000000 at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#CCB542
RGBrgb(204, 181, 66)
HSLhsl(50, 58%, 53%)
HSVhsv(50, 68%, 80%)
CMYKcmyk(0%, 11.3%, 67.6%, 20%)
CIE-LABlab(73.73, -4.68, 59.21)
CIE-LCHlch(73.73, 59.39, 94.52°)
OKLaboklab(77.19% -0.0182 0.1331)
OKLCHoklch(77.19% 0.134 97.8)
XYZxyz(42.4110, 46.2805, 11.8523)
Luminance0.4628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB542 #4259CC
analogous
#CC7042 #CCB542 #9ECC42
triadic
#CCB542 #42CCB5 #B542CC
tetradic
#CCB542 #42CC70 #4259CC #CC429E
square
#CCB542 #42CC70 #4259CC #CC429E
split-complementary
#CCB542 #429ECC #7042CC
monochromatic
#74661F #A4902C #CCB542 #D9C872 #E6DBA2

Accessibility & contrast

On white

2.05
#CCB542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.26
#CCB542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB542
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB542#FFFFFF#000000##000000
##CCB5421.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B133
Deuteranopia (green-blind)
#CCB948
Tritanopia (blue-blind)
#DCA89D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ccb542;
/* rgb */ color: rgb(204, 181, 66);
/* oklch */ color: oklch(77.2% 0.134 97.8);
Tailwind
colors: {
  custom: {
    50: '#dfca7c',
    500: '#ccb542',
    950: '#000000',
  },
}
SCSS
$custom: #ccb542;
$custom-light: #dfca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb542",
  "rgb": {
    "r": 204,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 50,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.77194,
    "c": 0.13434,
    "h": 97.8
  },
  "luminance": 0.46278
}

Semantic roles & 50–950 ramp

primary
#CCB542
secondary
#97A1D3
accent
#61E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB542

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

Preview Lab → · Contrast checker → · Palette generator →

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