#CCBD40#CCBD40

#CCBD40 is a light, vivid yellow. Relative luminance 0.496; OKLCH L 78.9% C 0.142 H 102.4°. Best body text is #000000 at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#CCBD40
RGBrgb(204, 189, 64)
HSLhsl(54, 58%, 53%)
HSVhsv(54, 69%, 80%)
CMYKcmyk(0%, 7.4%, 68.6%, 20%)
CIE-LABlab(75.83, -8.93, 62.15)
CIE-LCHlch(75.83, 62.79, 98.18°)
OKLaboklab(78.86% -0.0305 0.139)
OKLCHoklch(78.86% 0.142 102.4)
XYZxyz(44.0267, 49.6046, 12.1050)
Luminance0.4960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCBD40 #404FCC
analogous
#CC7740 #CCBD40 #95CC40
triadic
#CCBD40 #40CCBD #BD40CC
tetradic
#CCBD40 #40CC77 #404FCC #CC4095
square
#CCBD40 #40CC77 #404FCC #CC4095
split-complementary
#CCBD40 #4095CC #7740CC
monochromatic
#736A1F #A3962C #CCBD40 #D9CE70 #E6DEA1

Accessibility & contrast

On white

1.92
#CCBD40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.92
#CCBD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCBD40
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCBD40#FFFFFF#000000##000000
##CCBD401.001.9210.9210.92
#FFFFFF1.921.0021.0021.00
#00000010.9221.001.001.00
##00000010.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB72E
Deuteranopia (green-blind)
#D3BE48
Tritanopia (blue-blind)
#DBB0A4
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #ccbd40;
/* rgb */ color: rgb(204, 189, 64);
/* oklch */ color: oklch(78.9% 0.142 102.4);
Tailwind
colors: {
  custom: {
    50: '#dfd07c',
    500: '#ccbd40',
    950: '#000000',
  },
}
SCSS
$custom: #ccbd40;
$custom-light: #dfd07c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccbd40",
  "rgb": {
    "r": 204,
    "g": 189,
    "b": 64
  },
  "hsl": {
    "h": 53.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.78855,
    "c": 0.14229,
    "h": 102.4
  },
  "luminance": 0.49603
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCBD40

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

Preview Lab → · Contrast checker → · Palette generator →

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