#CAB259#CAB259

#CAB259 is a light, moderate yellow. Relative luminance 0.451; OKLCH L 76.6% C 0.113 H 94.5°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#CAB259
RGBrgb(202, 178, 89)
HSLhsl(47, 52%, 57%)
HSVhsv(47, 56%, 79%)
CMYKcmyk(0%, 11.9%, 55.9%, 20.8%)
CIE-LABlab(72.97, -2.41, 47.99)
CIE-LCHlch(72.97, 48.05, 92.87°)
OKLaboklab(76.62% -0.0088 0.1124)
OKLCHoklch(76.62% 0.113 94.5)
XYZxyz(42.0823, 45.1205, 15.9418)
Luminance0.4512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB259 #5971CA
analogous
#CA7A59 #CAB259 #A9CA59
triadic
#CAB259 #59CAB2 #B259CA
tetradic
#CAB259 #59CA7A #5971CA #CA59A9
square
#CAB259 #59CA7A #5971CA #CA59A9
split-complementary
#CAB259 #59A9CA #7A59CA
monochromatic
#806D29 #AE9538 #CAB259 #D9C887 #E8DDB6

Accessibility & contrast

On white

2.10
#CAB259 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#CAB259 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB259
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB259#FFFFFF#000000##000000
##CAB2591.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF51
Deuteranopia (green-blind)
#C8B65D
Tritanopia (blue-blind)
#D8A69E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab259;
/* rgb */ color: rgb(202, 178, 89);
/* oklch */ color: oklch(76.6% 0.113 94.5);
Tailwind
colors: {
  custom: {
    50: '#ddc88a',
    500: '#cab259',
    950: '#000000',
  },
}
SCSS
$custom: #cab259;
$custom-light: #ddc88a;
$custom-dark: #000000;
JSON
{
  "hex": "#cab259",
  "rgb": {
    "r": 202,
    "g": 178,
    "b": 89
  },
  "hsl": {
    "h": 47.257,
    "s": 51.598,
    "l": 57.059
  },
  "oklch": {
    "l": 0.76622,
    "c": 0.11272,
    "h": 94.5
  },
  "luminance": 0.45119
}

Semantic roles & 50–950 ramp

primary
#CAB259
secondary
#A8B2D6
accent
#6BDB4D
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130C
muted
#83827D

Preview Lab

Preview with #CAB259

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

Preview Lab → · Contrast checker → · Palette generator →

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