#CCB042#CCB042

#CCB042 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 76.2% C 0.131 H 94.7°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#CCB042
RGBrgb(204, 176, 66)
HSLhsl(48, 58%, 53%)
HSVhsv(48, 68%, 80%)
CMYKcmyk(0%, 13.7%, 67.6%, 20%)
CIE-LABlab(72.42, -2.06, 57.85)
CIE-LCHlch(72.42, 57.89, 92.04°)
OKLaboklab(76.16% -0.0107 0.1302)
OKLCHoklch(76.16% 0.131 94.7)
XYZxyz(41.4126, 44.2836, 11.5195)
Luminance0.4428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB042 #425ECC
analogous
#CC6B42 #CCB042 #A3CC42
triadic
#CCB042 #42CCB0 #B042CC
tetradic
#CCB042 #42CC6B #425ECC #CC42A3
square
#CCB042 #42CC6B #425ECC #CC42A3
split-complementary
#CCB042 #42A3CC #6B42CC
monochromatic
#74631F #A48C2C #CCB042 #D9C472 #E6D8A2

Accessibility & contrast

On white

2.13
#CCB042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#CCB042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB042
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB042#FFFFFF#000000##000000
##CCB0421.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#C9B548
Tritanopia (blue-blind)
#DCA399
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #ccb042;
/* rgb */ color: rgb(204, 176, 66);
/* oklch */ color: oklch(76.2% 0.131 94.7);
Tailwind
colors: {
  custom: {
    50: '#dfc77c',
    500: '#ccb042',
    950: '#000000',
  },
}
SCSS
$custom: #ccb042;
$custom-light: #dfc77c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb042",
  "rgb": {
    "r": 204,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 47.826,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.76158,
    "c": 0.13067,
    "h": 94.7
  },
  "luminance": 0.44281
}

Semantic roles & 50–950 ramp

primary
#CCB042
secondary
#97A3D3
accent
#66E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB042

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

Preview Lab → · Contrast checker → · Palette generator →

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