#CCB240#CCB240

#CCB240 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.6% C 0.134 H 96.1°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#CCB240
RGBrgb(204, 178, 64)
HSLhsl(49, 58%, 53%)
HSVhsv(49, 69%, 80%)
CMYKcmyk(0%, 12.7%, 68.6%, 20%)
CIE-LABlab(72.93, -3.22, 59.20)
CIE-LCHlch(72.93, 59.29, 93.11°)
OKLaboklab(76.55% -0.0142 0.1328)
OKLCHoklch(76.55% 0.134 96.1)
XYZxyz(41.7497, 45.0505, 11.3460)
Luminance0.4505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB240 #405ACC
analogous
#CC6C40 #CCB240 #A0CC40
triadic
#CCB240 #40CCB2 #B240CC
tetradic
#CCB240 #40CC6C #405ACC #CC40A0
square
#CCB240 #40CC6C #405ACC #CC40A0
split-complementary
#CCB240 #40A0CC #6C40CC
monochromatic
#73631F #A38D2C #CCB240 #D9C570 #E6D9A1

Accessibility & contrast

On white

2.10
#CCB240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.01
#CCB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB240
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB240#FFFFFF#000000##000000
##CCB2401.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE31
Deuteranopia (green-blind)
#CAB746
Tritanopia (blue-blind)
#DCA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #ccb240;
/* rgb */ color: rgb(204, 178, 64);
/* oklch */ color: oklch(76.6% 0.134 96.1);
Tailwind
colors: {
  custom: {
    50: '#dfc87b',
    500: '#ccb240',
    950: '#000000',
  },
}
SCSS
$custom: #ccb240;
$custom-light: #dfc87b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb240",
  "rgb": {
    "r": 204,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 48.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.76555,
    "c": 0.13351,
    "h": 96.1
  },
  "luminance": 0.45048
}

Semantic roles & 50–950 ramp

primary
#CCB240
secondary
#95A1D2
accent
#63E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB240

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

Preview Lab → · Contrast checker → · Palette generator →

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