#CBC371#CBC371

#CBC371 is a light, moderate yellow. Relative luminance 0.529; OKLCH L 80.6% C 0.104 H 103.6°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#CBC371
RGBrgb(203, 195, 113)
HSLhsl(55, 46%, 62%)
HSVhsv(55, 44%, 80%)
CMYKcmyk(0%, 3.9%, 44.3%, 20.4%)
CIE-LABlab(77.83, -8.69, 42.06)
CIE-LCHlch(77.83, 42.95, 101.68°)
OKLaboklab(80.58% -0.0245 0.1013)
OKLCHoklch(80.58% 0.104 103.6)
XYZxyz(47.1254, 52.9203, 23.3518)
Luminance0.5292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC371 #7179CB
analogous
#CB9671 #CBC371 #A6CB71
triadic
#CBC371 #71CBC3 #C371CB
tetradic
#CBC371 #71CB96 #7179CB #CB71A6
square
#CBC371 #71CB96 #7179CB #CB71A6
split-complementary
#CBC371 #71A6CB #9671CB
monochromatic
#8E8634 #BBB044 #CBC371 #DBD69E #ECE9CB

Accessibility & contrast

On white

1.81
#CBC371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#CBC371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC371
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC371#FFFFFF#000000##000000
##CBC3711.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D3C275
Tritanopia (blue-blind)
#D7B9AF
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cbc371;
/* rgb */ color: rgb(203, 195, 113);
/* oklch */ color: oklch(80.6% 0.104 103.6);
Tailwind
colors: {
  custom: {
    50: '#dcd59b',
    500: '#cbc371',
    950: '#000000',
  },
}
SCSS
$custom: #cbc371;
$custom-light: #dcd59b;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc371",
  "rgb": {
    "r": 203,
    "g": 195,
    "b": 113
  },
  "hsl": {
    "h": 54.667,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.80584,
    "c": 0.10424,
    "h": 103.6
  },
  "luminance": 0.52919
}

Semantic roles & 50–950 ramp

primary
#CBC371
secondary
#4C5295
accent
#38BA2C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CBC371

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

Preview Lab → · Contrast checker → · Palette generator →

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