#CAB45B#CAB45B

#CAB45B is a light, moderate yellow. Relative luminance 0.460; OKLCH L 77.1% C 0.112 H 95.7°. Best body text is #000000 at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#CAB45B
RGBrgb(202, 180, 91)
HSLhsl(48, 51%, 57%)
HSVhsv(48, 55%, 79%)
CMYKcmyk(0%, 10.9%, 55%, 20.8%)
CIE-LABlab(73.52, -3.30, 47.66)
CIE-LCHlch(73.52, 47.78, 93.96°)
OKLaboklab(77.06% -0.0112 0.1119)
OKLCHoklch(77.06% 0.112 95.7)
XYZxyz(42.5683, 45.9563, 16.5237)
Luminance0.4595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB45B #5B71CA
analogous
#CA7C5B #CAB45B #A9CA5B
triadic
#CAB45B #5BCAB4 #B45BCA
tetradic
#CAB45B #5BCA7C #5B71CA #CA5BA9
square
#CAB45B #5BCA7C #5B71CA #CA5BA9
split-complementary
#CAB45B #5BA9CA #7C5BCA
monochromatic
#81702A #AF9839 #CAB45B #D9C989 #E8DEB8

Accessibility & contrast

On white

2.06
#CAB45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.19
#CAB45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB45B
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB45B#FFFFFF#000000##000000
##CAB45B1.002.0610.1910.19
#FFFFFF2.061.0021.0021.00
#00000010.1921.001.001.00
##00000010.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B053
Deuteranopia (green-blind)
#C9B85F
Tritanopia (blue-blind)
#D8A8A0
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab45b;
/* rgb */ color: rgb(202, 180, 91);
/* oklch */ color: oklch(77.1% 0.112 95.7);
Tailwind
colors: {
  custom: {
    50: '#dcca8c',
    500: '#cab45b',
    950: '#000000',
  },
}
SCSS
$custom: #cab45b;
$custom-light: #dcca8c;
$custom-dark: #000000;
JSON
{
  "hex": "#cab45b",
  "rgb": {
    "r": 202,
    "g": 180,
    "b": 91
  },
  "hsl": {
    "h": 48.108,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.77061,
    "c": 0.11243,
    "h": 95.7
  },
  "luminance": 0.45954
}

Semantic roles & 50–950 ramp

primary
#CAB45B
secondary
#AAB3D7
accent
#69DB4D
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CAB45B

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

Preview Lab → · Contrast checker → · Palette generator →

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