#CAB951#CAB951

#CAB951 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 78.0% C 0.126 H 100.1°. Best body text is #000000 at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#CAB951
RGBrgb(202, 185, 81)
HSLhsl(52, 53%, 55%)
HSVhsv(52, 60%, 79%)
CMYKcmyk(0%, 8.4%, 59.9%, 20.8%)
CIE-LABlab(74.73, -6.67, 53.73)
CIE-LCHlch(74.73, 54.14, 97.08°)
OKLaboklab(77.99% -0.022 0.1238)
OKLCHoklch(77.99% 0.126 100.1)
XYZxyz(43.1929, 47.8503, 14.7439)
Luminance0.4785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB951 #5162CA
analogous
#CA7C51 #CAB951 #9FCA51
triadic
#CAB951 #51CAB9 #B951CA
tetradic
#CAB951 #51CA7C #5162CA #CA519F
square
#CAB951 #51CA7C #5162CA #CA519F
split-complementary
#CAB951 #519FCA #7C51CA
monochromatic
#7B6F25 #AA9934 #CAB951 #D8CC80 #E7DFAF

Accessibility & contrast

On white

1.99
#CAB951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.57
#CAB951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB951
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB951#FFFFFF#000000##000000
##CAB9511.001.9910.5710.57
#FFFFFF1.991.0021.0021.00
#00000010.5721.001.001.00
##00000010.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B446
Deuteranopia (green-blind)
#CEBB56
Tritanopia (blue-blind)
#D8ADA2
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cab951;
/* rgb */ color: rgb(202, 185, 81);
/* oklch */ color: oklch(78.0% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#ddcd86',
    500: '#cab951',
    950: '#000000',
  },
}
SCSS
$custom: #cab951;
$custom-light: #ddcd86;
$custom-dark: #000000;
JSON
{
  "hex": "#cab951",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 51.57,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.77988,
    "c": 0.12571,
    "h": 100.1
  },
  "luminance": 0.47849
}

Semantic roles & 50–950 ramp

primary
#CAB951
secondary
#A2A9D5
accent
#60DD4B
background
#FDFCF8
surface
#FBF9F0
border
#D4D2CB
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB951

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

Preview Lab → · Contrast checker → · Palette generator →

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