#CBCC40#CBCC40

#CBCC40 is a light, vivid yellow. Relative luminance 0.563; OKLCH L 82.0% C 0.157 H 109.8°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#CBCC40
RGBrgb(203, 204, 64)
HSLhsl(60, 58%, 53%)
HSVhsv(60, 69%, 80%)
CMYKcmyk(0.5%, 0%, 68.6%, 20%)
CIE-LABlab(79.76, -16.95, 66.06)
CIE-LCHlch(79.76, 68.19, 104.39°)
OKLaboklab(81.97% -0.053 0.1473)
OKLCHoklch(81.97% 0.157 109.8)
XYZxyz(47.1485, 56.2537, 13.2239)
Luminance0.5625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBCC40 #4140CC
analogous
#CC8740 #CBCC40 #85CC40
triadic
#CBCC40 #40CBCC #CC40CB
tetradic
#CBCC40 #40CC87 #4140CC #CC4085
square
#CBCC40 #40CC87 #4140CC #CC4085
split-complementary
#CBCC40 #4085CC #8740CC
monochromatic
#72731F #A2A32C #CBCC40 #D8D970 #E5E6A1

Accessibility & contrast

On white

1.71
#CBCC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#CBCC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBCC40
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBCC40#FFFFFF#000000##000000
##CBCC401.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC329
Deuteranopia (green-blind)
#DEC84A
Tritanopia (blue-blind)
#D9BFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cbcc40;
/* rgb */ color: rgb(203, 204, 64);
/* oklch */ color: oklch(82.0% 0.157 109.8);
Tailwind
colors: {
  custom: {
    50: '#dedb7d',
    500: '#cbcc40',
    950: '#000000',
  },
}
SCSS
$custom: #cbcc40;
$custom-light: #dedb7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbcc40",
  "rgb": {
    "r": 203,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 60.429,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.81967,
    "c": 0.15651,
    "h": 109.8
  },
  "luminance": 0.56252
}

Semantic roles & 50–950 ramp

primary
#CBCC40
secondary
#35347C
accent
#47E148
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBCC40

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

Preview Lab → · Contrast checker → · Palette generator →

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