#CAB54B#CAB54B

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

Color values

HEX#CAB54B
RGBrgb(202, 181, 75)
HSLhsl(50, 55%, 54%)
HSVhsv(50, 63%, 79%)
CMYKcmyk(0%, 10.4%, 62.9%, 20.8%)
CIE-LABlab(73.62, -4.99, 55.19)
CIE-LCHlch(73.62, 55.42, 95.17°)
OKLaboklab(77.09% -0.0179 0.1261)
OKLCHoklch(77.09% 0.127 98.1)
XYZxyz(42.1528, 46.1142, 13.3358)
Luminance0.4611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB54B #4B60CA
analogous
#CA764B #CAB54B #9FCA4B
triadic
#CAB54B #4BCAB5 #B54BCA
tetradic
#CAB54B #4BCA76 #4B60CA #CA4B9F
square
#CAB54B #4BCA76 #4B60CA #CA4B9F
split-complementary
#CAB54B #4B9FCA #764BCA
monochromatic
#776A23 #A79331 #CAB54B #D8C87A #E6DCAA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB54B#FFFFFF#000000##000000
##CAB54B1.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)
#C6B13F
Deuteranopia (green-blind)
#CBB850
Tritanopia (blue-blind)
#D9A99E
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab54b;
/* rgb */ color: rgb(202, 181, 75);
/* oklch */ color: oklch(77.1% 0.127 98.1);
Tailwind
colors: {
  custom: {
    50: '#ddca82',
    500: '#cab54b',
    950: '#000000',
  },
}
SCSS
$custom: #cab54b;
$custom-light: #ddca82;
$custom-dark: #000000;
JSON
{
  "hex": "#cab54b",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 75
  },
  "hsl": {
    "h": 50.079,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.7709,
    "c": 0.12732,
    "h": 98.1
  },
  "luminance": 0.46112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CAB54B

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

Preview Lab → · Contrast checker → · Palette generator →

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