#CCB940#CCB940

#CCB940 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 78.0% C 0.139 H 100.2°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#CCB940
RGBrgb(204, 185, 64)
HSLhsl(52, 58%, 53%)
HSVhsv(52, 69%, 80%)
CMYKcmyk(0%, 9.3%, 68.6%, 20%)
CIE-LABlab(74.77, -6.87, 61.08)
CIE-LCHlch(74.77, 61.47, 96.42°)
OKLaboklab(78.01% -0.0246 0.1367)
OKLCHoklch(78.01% 0.139 100.2)
XYZxyz(43.1781, 47.9074, 11.8222)
Luminance0.4790 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB940 #4053CC
analogous
#CC7340 #CCB940 #99CC40
triadic
#CCB940 #40CCB9 #B940CC
tetradic
#CCB940 #40CC73 #4053CC #CC4099
square
#CCB940 #40CC73 #4053CC #CC4099
split-complementary
#CCB940 #4099CC #7340CC
monochromatic
#73671F #A3932C #CCB940 #D9CB70 #E6DCA1

Accessibility & contrast

On white

1.98
#CCB940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#CCB940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB940
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB940#FFFFFF#000000##000000
##CCB9401.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB42F
Deuteranopia (green-blind)
#D0BB47
Tritanopia (blue-blind)
#DBACA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ccb940;
/* rgb */ color: rgb(204, 185, 64);
/* oklch */ color: oklch(78.0% 0.139 100.2);
Tailwind
colors: {
  custom: {
    50: '#dfcd7c',
    500: '#ccb940',
    950: '#000000',
  },
}
SCSS
$custom: #ccb940;
$custom-light: #dfcd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb940",
  "rgb": {
    "r": 204,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 51.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78014,
    "c": 0.13892,
    "h": 100.2
  },
  "luminance": 0.47905
}

Semantic roles & 50–950 ramp

primary
#CCB940
secondary
#959ED2
accent
#5CE147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB940

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

Preview Lab → · Contrast checker → · Palette generator →

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