#CCB040#CCB040

#CCB040 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 76.1% C 0.132 H 94.9°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#CCB040
RGBrgb(204, 176, 64)
HSLhsl(48, 58%, 53%)
HSVhsv(48, 69%, 80%)
CMYKcmyk(0%, 13.7%, 68.6%, 20%)
CIE-LABlab(72.40, -2.17, 58.67)
CIE-LCHlch(72.40, 58.71, 92.12°)
OKLaboklab(76.14% -0.0112 0.1316)
OKLCHoklch(76.14% 0.132 94.9)
XYZxyz(41.3546, 44.2604, 11.2144)
Luminance0.4426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB040 #405CCC
analogous
#CC6A40 #CCB040 #A2CC40
triadic
#CCB040 #40CCB0 #B040CC
tetradic
#CCB040 #40CC6A #405CCC #CC40A2
square
#CCB040 #40CC6A #405CCC #CC40A2
split-complementary
#CCB040 #40A2CC #6A40CC
monochromatic
#73621F #A38B2C #CCB040 #D9C470 #E6D8A1

Accessibility & contrast

On white

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

On black

9.85
#CCB040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB040
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB040#FFFFFF#000000##000000
##CCB0401.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccb040;
/* rgb */ color: rgb(204, 176, 64);
/* oklch */ color: oklch(76.1% 0.132 94.9);
Tailwind
colors: {
  custom: {
    50: '#dfc77b',
    500: '#ccb040',
    950: '#000000',
  },
}
SCSS
$custom: #ccb040;
$custom-light: #dfc77b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb040",
  "rgb": {
    "r": 204,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 48,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76141,
    "c": 0.1321,
    "h": 94.9
  },
  "luminance": 0.44258
}

Semantic roles & 50–950 ramp

primary
#CCB040
secondary
#95A2D2
accent
#66E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB040

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

Preview Lab → · Contrast checker → · Palette generator →

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