#CBC987#CBC987

#CBC987 is a very light, moderate yellow. Relative luminance 0.562; OKLCH L 82.2% C 0.086 H 106.7°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#CBC987
RGBrgb(203, 201, 135)
HSLhsl(58, 40%, 66%)
HSVhsv(58, 33%, 80%)
CMYKcmyk(0%, 1%, 33.5%, 20.4%)
CIE-LABlab(79.74, -9.34, 33.30)
CIE-LCHlch(79.74, 34.58, 105.67°)
OKLaboklab(82.21% -0.0247 0.0824)
OKLCHoklch(82.21% 0.086 106.7)
XYZxyz(49.8889, 56.2200, 31.1404)
Luminance0.5622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC987 #8789CB
analogous
#CBA787 #CBC987 #ABCB87
triadic
#CBC987 #87CBC9 #C987CB
tetradic
#CBC987 #87CBA7 #8789CB #CB87AB
square
#CBC987 #87CBA7 #8789CB #CB87AB
split-complementary
#CBC987 #87ABCB #A787CB
monochromatic
#969441 #B8B65C #CBC987 #DEDCB2 #F0EFDC

Accessibility & contrast

On white

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

On black

12.24
#CBC987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC987
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC987#FFFFFF#000000##000000
##CBC9871.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C482
Deuteranopia (green-blind)
#D5C78A
Tritanopia (blue-blind)
#D4C1B8
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cbc987;
/* rgb */ color: rgb(203, 201, 135);
/* oklch */ color: oklch(82.2% 0.086 106.7);
Tailwind
colors: {
  custom: {
    50: '#dcd9aa',
    500: '#cbc987',
    950: '#000000',
  },
}
SCSS
$custom: #cbc987;
$custom-light: #dcd9aa;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc987",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 135
  },
  "hsl": {
    "h": 58.235,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.82205,
    "c": 0.08601,
    "h": 106.7
  },
  "luminance": 0.56219
}

Semantic roles & 50–950 ramp

primary
#CBC987
secondary
#595B9D
accent
#37B333
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CBC987

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

Preview Lab → · Contrast checker → · Palette generator →

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