#CAB54E#CAB54E

#CAB54E is a light, vivid yellow. Relative luminance 0.462; OKLCH L 77.1% C 0.125 H 97.8°. Best body text is #000000 at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#CAB54E
RGBrgb(202, 181, 78)
HSLhsl(50, 54%, 55%)
HSVhsv(50, 61%, 79%)
CMYKcmyk(0%, 10.4%, 61.4%, 20.8%)
CIE-LABlab(73.65, -4.79, 53.88)
CIE-LCHlch(73.65, 54.10, 95.08°)
OKLaboklab(77.12% -0.017 0.1237)
OKLCHoklch(77.12% 0.125 97.8)
XYZxyz(42.2579, 46.1563, 13.8894)
Luminance0.4615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB54E #4E63CA
analogous
#CA774E #CAB54E #A1CA4E
triadic
#CAB54E #4ECAB5 #B54ECA
tetradic
#CAB54E #4ECA77 #4E63CA #CA4EA1
square
#CAB54E #4ECA77 #4E63CA #CA4EA1
split-complementary
#CAB54E #4EA1CA #774ECA
monochromatic
#796B24 #A89432 #CAB54E #D8C97D #E6DCAC

Accessibility & contrast

On white

2.05
#CAB54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.23
#CAB54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB54E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB54E#FFFFFF#000000##000000
##CAB54E1.002.0510.2310.23
#FFFFFF2.051.0021.0021.00
#00000010.2321.001.001.00
##00000010.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B143
Deuteranopia (green-blind)
#CBB853
Tritanopia (blue-blind)
#D9A99F
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab54e;
/* rgb */ color: rgb(202, 181, 78);
/* oklch */ color: oklch(77.1% 0.125 97.8);
Tailwind
colors: {
  custom: {
    50: '#ddca84',
    500: '#cab54e',
    950: '#000000',
  },
}
SCSS
$custom: #cab54e;
$custom-light: #ddca84;
$custom-dark: #000000;
JSON
{
  "hex": "#cab54e",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 78
  },
  "hsl": {
    "h": 49.839,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.7712,
    "c": 0.12485,
    "h": 97.8
  },
  "luminance": 0.46154
}

Semantic roles & 50–950 ramp

primary
#CAB54E
secondary
#A0A9D4
accent
#63DD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB54E

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

Preview Lab → · Contrast checker → · Palette generator →

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