#CAB54A#CAB54A

#CAB54A is a light, vivid yellow. Relative luminance 0.461; OKLCH L 77.1% C 0.128 H 98.2°. Best body text is #000000 at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#CAB54A
RGBrgb(202, 181, 74)
HSLhsl(50, 55%, 54%)
HSVhsv(50, 63%, 79%)
CMYKcmyk(0%, 10.4%, 63.4%, 20.8%)
CIE-LABlab(73.61, -5.06, 55.62)
CIE-LCHlch(73.61, 55.85, 95.19°)
OKLaboklab(77.08% -0.0182 0.1268)
OKLCHoklch(77.08% 0.128 98.2)
XYZxyz(42.1188, 46.1006, 13.1570)
Luminance0.4610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB54A #4A5FCA
analogous
#CA754A #CAB54A #9FCA4A
triadic
#CAB54A #4ACAB5 #B54ACA
tetradic
#CAB54A #4ACA75 #4A5FCA #CA4A9F
square
#CAB54A #4ACA75 #4A5FCA #CA4A9F
split-complementary
#CAB54A #4A9FCA #754ACA
monochromatic
#776923 #A69331 #CAB54A #D8C879 #E6DCA9

Accessibility & contrast

On white

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

On black

10.22
#CAB54A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB54A
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB54A#FFFFFF#000000##000000
##CAB54A1.002.0510.2210.22
#FFFFFF2.051.0021.0021.00
#00000010.2221.001.001.00
##00000010.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B13E
Deuteranopia (green-blind)
#CBB850
Tritanopia (blue-blind)
#D9A89E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab54a;
/* rgb */ color: rgb(202, 181, 74);
/* oklch */ color: oklch(77.1% 0.128 98.2);
Tailwind
colors: {
  custom: {
    50: '#ddca81',
    500: '#cab54a',
    950: '#000000',
  },
}
SCSS
$custom: #cab54a;
$custom-light: #ddca81;
$custom-dark: #000000;
JSON
{
  "hex": "#cab54a",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 74
  },
  "hsl": {
    "h": 50.156,
    "s": 54.701,
    "l": 54.118
  },
  "oklch": {
    "l": 0.7708,
    "c": 0.12812,
    "h": 98.2
  },
  "luminance": 0.46099
}

Semantic roles & 50–950 ramp

primary
#CAB54A
secondary
#9DA6D3
accent
#62DE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#15130B
muted
#84827C

Preview Lab

Preview with #CAB54A

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

Preview Lab → · Contrast checker → · Palette generator →

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