#CBC962#CBC962

#CBC962 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.126 H 107.9°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CBC962
RGBrgb(203, 201, 98)
HSLhsl(59, 50%, 59%)
HSVhsv(59, 52%, 80%)
CMYKcmyk(0%, 1%, 51.7%, 20.4%)
CIE-LABlab(79.24, -13.14, 51.05)
CIE-LCHlch(79.24, 52.71, 104.43°)
OKLaboklab(81.65% -0.0387 0.1199)
OKLCHoklch(81.65% 0.126 107.9)
XYZxyz(47.7211, 55.3529, 19.7233)
Luminance0.5535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC962 #6264CB
analogous
#CB9562 #CBC962 #99CB62
triadic
#CBC962 #62CBC9 #C962CB
tetradic
#CBC962 #62CB95 #6264CB #CB6299
square
#CBC962 #62CB95 #6264CB #CB6299
split-complementary
#CBC962 #6299CB #9562CB
monochromatic
#86842C #B4B23C #CBC962 #DAD990 #E9E9BE

Accessibility & contrast

On white

1.74
#CBC962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#CBC962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC962
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC962#FFFFFF#000000##000000
##CBC9621.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C258
Deuteranopia (green-blind)
#D9C667
Tritanopia (blue-blind)
#D8BEB2
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cbc962;
/* rgb */ color: rgb(203, 201, 98);
/* oklch */ color: oklch(81.7% 0.126 107.9);
Tailwind
colors: {
  custom: {
    50: '#ddd991',
    500: '#cbc962',
    950: '#000000',
  },
}
SCSS
$custom: #cbc962;
$custom-light: #ddd991;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc962",
  "rgb": {
    "r": 203,
    "g": 201,
    "b": 98
  },
  "hsl": {
    "h": 58.857,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81651,
    "c": 0.126,
    "h": 107.9
  },
  "luminance": 0.55352
}

Semantic roles & 50–950 ramp

primary
#CBC962
secondary
#44458D
accent
#51DA4E
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CBC962

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

Preview Lab → · Contrast checker → · Palette generator →

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