#CCBB42#CCBB42

#CCBB42 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.5% C 0.139 H 101.2°. Best body text is #000000 at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#CCBB42
RGBrgb(204, 187, 66)
HSLhsl(53, 58%, 53%)
HSVhsv(53, 68%, 80%)
CMYKcmyk(0%, 8.3%, 67.6%, 20%)
CIE-LABlab(75.31, -7.79, 60.83)
CIE-LCHlch(75.31, 61.33, 97.30°)
OKLaboklab(78.45% -0.0271 0.1365)
OKLCHoklch(78.45% 0.139 101.2)
XYZxyz(43.6574, 48.7733, 12.2678)
Luminance0.4877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBB42 #4253CC
analogous
#CC7642 #CCBB42 #98CC42
triadic
#CCBB42 #42CCBB #BB42CC
tetradic
#CCBB42 #42CC76 #4253CC #CC4298
square
#CCBB42 #42CC76 #4253CC #CC4298
split-complementary
#CCBB42 #4298CC #7642CC
monochromatic
#746A1F #A4962C #CCBB42 #D9CC72 #E6DEA2

Accessibility & contrast

On white

1.95
#CCBB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.75
#CCBB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBB42
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBB42#FFFFFF#000000##000000
##CCBB421.001.9510.7510.75
#FFFFFF1.951.0021.0021.00
#00000010.7521.001.001.00
##00000010.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB631
Deuteranopia (green-blind)
#D1BD49
Tritanopia (blue-blind)
#DBAEA2
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccbb42;
/* rgb */ color: rgb(204, 187, 66);
/* oklch */ color: oklch(78.5% 0.139 101.2);
Tailwind
colors: {
  custom: {
    50: '#dfcf7d',
    500: '#ccbb42',
    950: '#000000',
  },
}
SCSS
$custom: #ccbb42;
$custom-light: #dfcf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbb42",
  "rgb": {
    "r": 204,
    "g": 187,
    "b": 66
  },
  "hsl": {
    "h": 52.609,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.7845,
    "c": 0.13919,
    "h": 101.2
  },
  "luminance": 0.48771
}

Semantic roles & 50–950 ramp

primary
#CCBB42
secondary
#979ED3
accent
#5AE147
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCBB42

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

Preview Lab → · Contrast checker → · Palette generator →

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