#CBCC38#CBCC38

#CBCC38 is a light, vivid yellow. Relative luminance 0.562; OKLCH L 81.9% C 0.161 H 109.9°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#CBCC38
RGBrgb(203, 204, 56)
HSLhsl(60, 59%, 51%)
HSVhsv(60, 73%, 80%)
CMYKcmyk(0.5%, 0%, 72.5%, 20%)
CIE-LABlab(79.71, -17.33, 68.84)
CIE-LCHlch(79.71, 70.98, 104.13°)
OKLaboklab(81.91% -0.0549 0.1517)
OKLCHoklch(81.91% 0.161 109.9)
XYZxyz(46.9370, 56.1691, 12.1099)
Luminance0.5617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBCC38 #3938CC
analogous
#CC8338 #CBCC38 #81CC38
triadic
#CBCC38 #38CBCC #CC38CB
tetradic
#CBCC38 #38CC83 #3938CC #CC3881
square
#CBCC38 #38CC83 #3938CC #CC3881
split-complementary
#CBCC38 #3881CC #8338CC
monochromatic
#6D6E1C #9D9E29 #CBCC38 #D8D869 #E4E599

Accessibility & contrast

On white

1.72
#CBCC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#CBCC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBCC38
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBCC38#FFFFFF#000000##000000
##CBCC381.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cbcc38;
/* rgb */ color: rgb(203, 204, 56);
/* oklch */ color: oklch(81.9% 0.161 109.9);
Tailwind
colors: {
  custom: {
    50: '#dfdb79',
    500: '#cbcc38',
    950: '#000000',
  },
}
SCSS
$custom: #cbcc38;
$custom-light: #dfdb79;
$custom-dark: #000000;
JSON
{
  "hex": "#cbcc38",
  "rgb": {
    "r": 203,
    "g": 204,
    "b": 56
  },
  "hsl": {
    "h": 60.405,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.81914,
    "c": 0.16136,
    "h": 109.9
  },
  "luminance": 0.56168
}

Semantic roles & 50–950 ramp

primary
#CBCC38
secondary
#323177
accent
#45E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBCC38

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

Preview Lab → · Contrast checker → · Palette generator →

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