#CBC940#CBC940

#CBC940 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.3% C 0.154 H 108.5°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#CBC940
RGBrgb(203, 201, 64)
HSLhsl(59, 57%, 52%)
HSVhsv(59, 68%, 80%)
CMYKcmyk(0%, 1%, 68.5%, 20.4%)
CIE-LABlab(78.95, -15.45, 65.25)
CIE-LCHlch(78.95, 67.06, 103.32°)
OKLaboklab(81.32% -0.0488 0.1456)
OKLCHoklch(81.32% 0.154 108.5)
XYZxyz(46.4423, 54.8414, 12.9885)
Luminance0.5484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC940 #4042CB
analogous
#CB8440 #CBC940 #87CB40
triadic
#CBC940 #40CBC9 #C940CB
tetradic
#CBC940 #40CB84 #4042CB #CB4087
square
#CBC940 #40CB84 #4042CB #CB4087
split-complementary
#CBC940 #4087CB #8440CB
monochromatic
#72701F #A2A02C #CBC940 #D8D770 #E5E4A0

Accessibility & contrast

On white

1.75
#CBC940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.97
#CBC940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC940
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC940#FFFFFF#000000##000000
##CBC9401.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12A
Deuteranopia (green-blind)
#DBC64A
Tritanopia (blue-blind)
#D9BCAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cbc940;
/* rgb */ color: rgb(203, 201, 64);
/* oklch */ color: oklch(81.3% 0.154 108.5);
Tailwind
colors: {
  custom: {
    50: '#ded97d',
    500: '#cbc940',
    950: '#000000',
  },
}
SCSS
$custom: #cbc940;
$custom-light: #ded97d;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc940",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 59.137,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.81322,
    "c": 0.15354,
    "h": 108.5
  },
  "luminance": 0.5484
}

Semantic roles & 50–950 ramp

primary
#CBC940
secondary
#35367B
accent
#4AE047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CBC940

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

Preview Lab → · Contrast checker → · Palette generator →

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