#CAB04B#CAB04B

#CAB04B is a light, vivid yellow. Relative luminance 0.441; OKLCH L 76.1% C 0.123 H 94.8°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#CAB04B
RGBrgb(202, 176, 75)
HSLhsl(48, 55%, 54%)
HSVhsv(48, 63%, 79%)
CMYKcmyk(0%, 12.9%, 62.9%, 20.8%)
CIE-LABlab(72.31, -2.37, 53.76)
CIE-LCHlch(72.31, 53.82, 92.52°)
OKLaboklab(76.05% -0.0104 0.123)
OKLCHoklch(76.05% 0.123 94.8)
XYZxyz(41.1543, 44.1173, 13.0030)
Luminance0.4411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB04B #4B65CA
analogous
#CA714B #CAB04B #A4CA4B
triadic
#CAB04B #4BCAB0 #B04BCA
tetradic
#CAB04B #4BCA71 #4B65CA #CA4BA4
square
#CAB04B #4BCA71 #4B65CA #CA4BA4
split-complementary
#CAB04B #4BA4CA #714BCA
monochromatic
#776623 #A78F31 #CAB04B #D8C57A #E6DAAA

Accessibility & contrast

On white

2.14
#CAB04B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#CAB04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB04B
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB04B#FFFFFF#000000##000000
##CAB04B1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AD40
Deuteranopia (green-blind)
#C8B550
Tritanopia (blue-blind)
#D9A39A
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cab04b;
/* rgb */ color: rgb(202, 176, 75);
/* oklch */ color: oklch(76.1% 0.123 94.8);
Tailwind
colors: {
  custom: {
    50: '#ddc781',
    500: '#cab04b',
    950: '#000000',
  },
}
SCSS
$custom: #cab04b;
$custom-light: #ddc781;
$custom-dark: #000000;
JSON
{
  "hex": "#cab04b",
  "rgb": {
    "r": 202,
    "g": 176,
    "b": 75
  },
  "hsl": {
    "h": 47.717,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.76051,
    "c": 0.12345,
    "h": 94.8
  },
  "luminance": 0.44115
}

Semantic roles & 50–950 ramp

primary
#CAB04B
secondary
#9DA8D3
accent
#68DE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#15130B
muted
#84827C

Preview Lab

Preview with #CAB04B

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

Preview Lab → · Contrast checker → · Palette generator →

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