#CCB540#CCB540

#CCB540 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 77.2% C 0.136 H 97.9°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#CCB540
RGBrgb(204, 181, 64)
HSLhsl(50, 58%, 53%)
HSVhsv(50, 69%, 80%)
CMYKcmyk(0%, 11.3%, 68.6%, 20%)
CIE-LABlab(73.71, -4.79, 60.01)
CIE-LCHlch(73.71, 60.20, 94.56°)
OKLaboklab(77.18% -0.0187 0.1344)
OKLCHoklch(77.18% 0.136 97.9)
XYZxyz(42.3531, 46.2573, 11.5472)
Luminance0.4626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB540 #4057CC
analogous
#CC6F40 #CCB540 #9DCC40
triadic
#CCB540 #40CCB5 #B540CC
tetradic
#CCB540 #40CC6F #4057CC #CC409D
square
#CCB540 #40CC6F #4057CC #CC409D
split-complementary
#CCB540 #409DCC #6F40CC
monochromatic
#73651F #A3902C #CCB540 #D9C870 #E6DAA1

Accessibility & contrast

On white

2.05
#CCB540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#CCB540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB540
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB540#FFFFFF#000000##000000
##CCB5401.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B130
Deuteranopia (green-blind)
#CDB947
Tritanopia (blue-blind)
#DCA89D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #ccb540;
/* rgb */ color: rgb(204, 181, 64);
/* oklch */ color: oklch(77.2% 0.136 97.9);
Tailwind
colors: {
  custom: {
    50: '#dfca7b',
    500: '#ccb540',
    950: '#000000',
  },
}
SCSS
$custom: #ccb540;
$custom-light: #dfca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb540",
  "rgb": {
    "r": 204,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 50.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77178,
    "c": 0.13575,
    "h": 97.9
  },
  "luminance": 0.46255
}

Semantic roles & 50–950 ramp

primary
#CCB540
secondary
#959FD2
accent
#60E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCB540

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

Preview Lab → · Contrast checker → · Palette generator →

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