#CBC151#CBC151

#CBC151 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.133 H 104.2°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CBC151
RGBrgb(203, 193, 81)
HSLhsl(55, 54%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 4.9%, 60.1%, 20.4%)
CIE-LABlab(76.94, -10.37, 56.20)
CIE-LCHlch(76.94, 57.14, 100.46°)
OKLaboklab(79.76% -0.0327 0.129)
OKLCHoklch(79.76% 0.133 104.2)
XYZxyz(45.1853, 51.4321, 15.3302)
Luminance0.5143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC151 #515BCB
analogous
#CB8451 #CBC151 #98CB51
triadic
#CBC151 #51CBC1 #C151CB
tetradic
#CBC151 #51CB84 #515BCB #CB5198
square
#CBC151 #51CB84 #515BCB #CB5198
split-complementary
#CBC151 #5198CB #8451CB
monochromatic
#7C7525 #ACA233 #CBC151 #D9D280 #E7E3AF

Accessibility & contrast

On white

1.86
#CBC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#CBC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC151
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC151#FFFFFF#000000##000000
##CBC1511.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB44
Deuteranopia (green-blind)
#D4C057
Tritanopia (blue-blind)
#D9B5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc151;
/* rgb */ color: rgb(203, 193, 81);
/* oklch */ color: oklch(79.8% 0.133 104.2);
Tailwind
colors: {
  custom: {
    50: '#ded386',
    500: '#cbc151',
    950: '#000000',
  },
}
SCSS
$custom: #cbc151;
$custom-light: #ded386;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc151",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 55.082,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79763,
    "c": 0.13306,
    "h": 104.2
  },
  "luminance": 0.51431
}

Semantic roles & 50–950 ramp

primary
#CBC151
secondary
#3C4284
accent
#56DD4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #CBC151

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

Preview Lab → · Contrast checker → · Palette generator →

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