#CCBB40#CCBB40

#CCBB40 is a light, vivid yellow. Relative luminance 0.487; OKLCH L 78.4% C 0.141 H 101.3°. Best body text is #000000 at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#CCBB40
RGBrgb(204, 187, 64)
HSLhsl(53, 58%, 53%)
HSVhsv(53, 69%, 80%)
CMYKcmyk(0%, 8.3%, 68.6%, 20%)
CIE-LABlab(75.30, -7.90, 61.62)
CIE-LCHlch(75.30, 62.12, 97.31°)
OKLaboklab(78.43% -0.0276 0.1379)
OKLCHoklch(78.43% 0.141 101.3)
XYZxyz(43.5995, 48.7501, 11.9626)
Luminance0.4875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBB40 #4051CC
analogous
#CC7540 #CCBB40 #97CC40
triadic
#CCBB40 #40CCBB #BB40CC
tetradic
#CCBB40 #40CC75 #4051CC #CC4097
square
#CCBB40 #40CC75 #4051CC #CC4097
split-complementary
#CCBB40 #4097CC #7540CC
monochromatic
#73691F #A3952C #CCBB40 #D9CC70 #E6DDA1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCBB40#FFFFFF#000000##000000
##CCBB401.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)
#CCB62E
Deuteranopia (green-blind)
#D1BC47
Tritanopia (blue-blind)
#DBAEA2
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #ccbb40;
/* rgb */ color: rgb(204, 187, 64);
/* oklch */ color: oklch(78.4% 0.141 101.3);
Tailwind
colors: {
  custom: {
    50: '#dfcf7c',
    500: '#ccbb40',
    950: '#000000',
  },
}
SCSS
$custom: #ccbb40;
$custom-light: #dfcf7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbb40",
  "rgb": {
    "r": 204,
    "g": 187,
    "b": 64
  },
  "hsl": {
    "h": 52.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78434,
    "c": 0.14058,
    "h": 101.3
  },
  "luminance": 0.48748
}

Semantic roles & 50–950 ramp

primary
#CCBB40
secondary
#959DD2
accent
#59E147
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCBB40

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

Preview Lab → · Contrast checker → · Palette generator →

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