#CBC978#CBC978

#CBC978 is a light, moderate yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.103 H 107.2°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#CBC978
RGBrgb(203, 201, 120)
HSLhsl(59, 44%, 63%)
HSVhsv(59, 41%, 80%)
CMYKcmyk(0%, 1%, 40.9%, 20.4%)
CIE-LABlab(79.52, -11.04, 40.66)
CIE-LCHlch(79.52, 42.13, 105.19°)
OKLaboklab(81.96% -0.0306 0.0986)
OKLCHoklch(81.96% 0.103 107.2)
XYZxyz(48.9062, 55.8270, 25.9651)
Luminance0.5583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC978 #787ACB
analogous
#CB9F78 #CBC978 #A3CB78
triadic
#CBC978 #78CBC9 #C978CB
tetradic
#CBC978 #78CB9F #787ACB #CB78A3
square
#CBC978 #78CB9F #787ACB #CB78A3
split-complementary
#CBC978 #78A3CB #9F78CB
monochromatic
#918F38 #BAB74C #CBC978 #DCDBA4 #EDECD0

Accessibility & contrast

On white

1.73
#CBC978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#CBC978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC978
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC978#FFFFFF#000000##000000
##CBC9781.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C372
Deuteranopia (green-blind)
#D7C77C
Tritanopia (blue-blind)
#D6C0B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cbc978;
/* rgb */ color: rgb(203, 201, 120);
/* oklch */ color: oklch(82.0% 0.103 107.2);
Tailwind
colors: {
  custom: {
    50: '#dcd9a0',
    500: '#cbc978',
    950: '#000000',
  },
}
SCSS
$custom: #cbc978;
$custom-light: #dcd9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc978",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 120
  },
  "hsl": {
    "h": 58.554,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.81955,
    "c": 0.10325,
    "h": 107.2
  },
  "luminance": 0.55826
}

Semantic roles & 50–950 ramp

primary
#CBC978
secondary
#505198
accent
#31B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CBC978

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

Preview Lab → · Contrast checker → · Palette generator →

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