#CAB54F#CAB54F

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

Color values

HEX#CAB54F
RGBrgb(202, 181, 79)
HSLhsl(50, 54%, 55%)
HSVhsv(50, 61%, 79%)
CMYKcmyk(0%, 10.4%, 60.9%, 20.8%)
CIE-LABlab(73.66, -4.72, 53.44)
CIE-LCHlch(73.66, 53.65, 95.05°)
OKLaboklab(77.13% -0.0167 0.1229)
OKLCHoklch(77.13% 0.124 97.7)
XYZxyz(42.2940, 46.1707, 14.0797)
Luminance0.4617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB54F #4F64CA
analogous
#CA774F #CAB54F #A2CA4F
triadic
#CAB54F #4FCAB5 #B54FCA
tetradic
#CAB54F #4FCA77 #4F64CA #CA4FA2
square
#CAB54F #4FCA77 #4F64CA #CA4FA2
split-complementary
#CAB54F #4FA2CA #774FCA
monochromatic
#7A6B25 #A99533 #CAB54F #D8C97E #E6DDAD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB54F#FFFFFF#000000##000000
##CAB54F1.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)
#C5B144
Deuteranopia (green-blind)
#CBB854
Tritanopia (blue-blind)
#D9A99F
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cab54f;
/* rgb */ color: rgb(202, 181, 79);
/* oklch */ color: oklch(77.1% 0.124 97.7);
Tailwind
colors: {
  custom: {
    50: '#ddca84',
    500: '#cab54f',
    950: '#000000',
  },
}
SCSS
$custom: #cab54f;
$custom-light: #ddca84;
$custom-dark: #000000;
JSON
{
  "hex": "#cab54f",
  "rgb": {
    "r": 202,
    "g": 181,
    "b": 79
  },
  "hsl": {
    "h": 49.756,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.77131,
    "c": 0.12401,
    "h": 97.7
  },
  "luminance": 0.46169
}

Semantic roles & 50–950 ramp

primary
#CAB54F
secondary
#A1A9D4
accent
#64DD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB54F

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

Preview Lab → · Contrast checker → · Palette generator →

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