#CBC951#CBC951

#CBC951 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.5% C 0.141 H 108.3°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#CBC951
RGBrgb(203, 201, 81)
HSLhsl(59, 54%, 56%)
HSVhsv(59, 60%, 80%)
CMYKcmyk(0%, 1%, 60.1%, 20.4%)
CIE-LABlab(79.08, -14.43, 58.53)
CIE-LCHlch(79.08, 60.28, 103.85°)
OKLaboklab(81.47% -0.0442 0.134)
OKLCHoklch(81.47% 0.141 108.3)
XYZxyz(47.0019, 55.0652, 15.9357)
Luminance0.5506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC951 #5153CB
analogous
#CB8C51 #CBC951 #90CB51
triadic
#CBC951 #51CBC9 #C951CB
tetradic
#CBC951 #51CB8C #5153CB #CB5190
square
#CBC951 #51CB8C #5153CB #CB5190
split-complementary
#CBC951 #5190CB #8C51CB
monochromatic
#7C7B25 #ACAA33 #CBC951 #D9D880 #E7E6AF

Accessibility & contrast

On white

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

On black

12.01
#CBC951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC951
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC951#FFFFFF#000000##000000
##CBC9511.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DAC658
Tritanopia (blue-blind)
#D8BDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cbc951;
/* rgb */ color: rgb(203, 201, 81);
/* oklch */ color: oklch(81.5% 0.141 108.3);
Tailwind
colors: {
  custom: {
    50: '#ded987',
    500: '#cbc951',
    950: '#000000',
  },
}
SCSS
$custom: #cbc951;
$custom-light: #ded987;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc951",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 59.016,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81466,
    "c": 0.14105,
    "h": 108.3
  },
  "luminance": 0.55064
}

Semantic roles & 50–950 ramp

primary
#CBC951
secondary
#3C3D84
accent
#4DDD4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CBC951

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

Preview Lab → · Contrast checker → · Palette generator →

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