#CAB952#CAB952

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

Color values

HEX#CAB952
RGBrgb(202, 185, 82)
HSLhsl(52, 53%, 56%)
HSVhsv(52, 59%, 79%)
CMYKcmyk(0%, 8.4%, 59.4%, 20.8%)
CIE-LABlab(74.74, -6.60, 53.29)
CIE-LCHlch(74.74, 53.69, 97.06°)
OKLaboklab(78% -0.0217 0.1229)
OKLCHoklch(78% 0.125 100)
XYZxyz(43.2307, 47.8655, 14.9428)
Luminance0.4786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB952 #5263CA
analogous
#CA7D52 #CAB952 #9FCA52
triadic
#CAB952 #52CAB9 #B952CA
tetradic
#CAB952 #52CA7D #5263CA #CA529F
square
#CAB952 #52CA7D #5263CA #CA529F
split-complementary
#CAB952 #529FCA #7D52CA
monochromatic
#7C7026 #AB9A34 #CAB952 #D8CC81 #E7DFB0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB952#FFFFFF#000000##000000
##CAB9521.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)
#C9B447
Deuteranopia (green-blind)
#CEBB57
Tritanopia (blue-blind)
#D8ADA3
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cab952;
/* rgb */ color: rgb(202, 185, 82);
/* oklch */ color: oklch(78.0% 0.125 100.0);
Tailwind
colors: {
  custom: {
    50: '#ddcd86',
    500: '#cab952',
    950: '#000000',
  },
}
SCSS
$custom: #cab952;
$custom-light: #ddcd86;
$custom-dark: #000000;
JSON
{
  "hex": "#cab952",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 82
  },
  "hsl": {
    "h": 51.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.77999,
    "c": 0.12484,
    "h": 100
  },
  "luminance": 0.47864
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAB952

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

Preview Lab → · Contrast checker → · Palette generator →

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