#CCBC40#CCBC40

#CCBC40 is a light, vivid yellow. Relative luminance 0.492; OKLCH L 78.6% C 0.141 H 101.9°. Best body text is #000000 at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#CCBC40
RGBrgb(204, 188, 64)
HSLhsl(53, 58%, 53%)
HSVhsv(53, 69%, 80%)
CMYKcmyk(0%, 7.8%, 68.6%, 20%)
CIE-LABlab(75.56, -8.42, 61.88)
CIE-LCHlch(75.56, 62.45, 97.75°)
OKLaboklab(78.64% -0.0291 0.1384)
OKLCHoklch(78.64% 0.141 101.9)
XYZxyz(43.8124, 49.1758, 12.0336)
Luminance0.4917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBC40 #4050CC
analogous
#CC7640 #CCBC40 #96CC40
triadic
#CCBC40 #40CCBC #BC40CC
tetradic
#CCBC40 #40CC76 #4050CC #CC4096
square
#CCBC40 #40CC76 #4050CC #CC4096
split-complementary
#CCBC40 #4096CC #7640CC
monochromatic
#73691F #A3962C #CCBC40 #D9CD70 #E6DEA1

Accessibility & contrast

On white

1.94
#CCBC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.83
#CCBC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBC40
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBC40#FFFFFF#000000##000000
##CCBC401.001.9410.8310.83
#FFFFFF1.941.0021.0021.00
#00000010.8321.001.001.00
##00000010.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#D2BD48
Tritanopia (blue-blind)
#DBAFA3
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #ccbc40;
/* rgb */ color: rgb(204, 188, 64);
/* oklch */ color: oklch(78.6% 0.141 101.9);
Tailwind
colors: {
  custom: {
    50: '#dfcf7c',
    500: '#ccbc40',
    950: '#000000',
  },
}
SCSS
$custom: #ccbc40;
$custom-light: #dfcf7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbc40",
  "rgb": {
    "r": 204,
    "g": 188,
    "b": 64
  },
  "hsl": {
    "h": 53.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78644,
    "c": 0.14144,
    "h": 101.9
  },
  "luminance": 0.49174
}

Semantic roles & 50–950 ramp

primary
#CCBC40
secondary
#959CD2
accent
#58E147
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCBC40

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

Preview Lab → · Contrast checker → · Palette generator →

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