#CAB84B#CAB84B

#CAB84B is a light, vivid yellow. Relative luminance 0.473; OKLCH L 77.7% C 0.130 H 99.9°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#CAB84B
RGBrgb(202, 184, 75)
HSLhsl(51, 55%, 54%)
HSVhsv(51, 63%, 79%)
CMYKcmyk(0%, 8.9%, 62.9%, 20.8%)
CIE-LABlab(74.41, -6.55, 56.05)
CIE-LCHlch(74.41, 56.43, 96.67°)
OKLaboklab(77.72% -0.0224 0.1279)
OKLCHoklch(77.72% 0.13 99.9)
XYZxyz(42.7694, 47.3474, 13.5414)
Luminance0.4735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB84B #4B5DCA
analogous
#CA794B #CAB84B #9DCA4B
triadic
#CAB84B #4BCAB8 #B84BCA
tetradic
#CAB84B #4BCA79 #4B5DCA #CA4B9D
square
#CAB84B #4BCA79 #4B5DCA #CA4B9D
split-complementary
#CAB84B #4B9DCA #794BCA
monochromatic
#776B23 #A79631 #CAB84B #D8CB7A #E6DDAA

Accessibility & contrast

On white

2.01
#CAB84B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#CAB84B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB84B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB84B#FFFFFF#000000##000000
##CAB84B1.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B33E
Deuteranopia (green-blind)
#CDBA51
Tritanopia (blue-blind)
#D9ACA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cab84b;
/* rgb */ color: rgb(202, 184, 75);
/* oklch */ color: oklch(77.7% 0.130 99.9);
Tailwind
colors: {
  custom: {
    50: '#ddcd82',
    500: '#cab84b',
    950: '#000000',
  },
}
SCSS
$custom: #cab84b;
$custom-light: #ddcd82;
$custom-dark: #000000;
JSON
{
  "hex": "#cab84b",
  "rgb": {
    "r": 202,
    "g": 184,
    "b": 75
  },
  "hsl": {
    "h": 51.496,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.77718,
    "c": 0.12982,
    "h": 99.9
  },
  "luminance": 0.47346
}

Semantic roles & 50–950 ramp

primary
#CAB84B
secondary
#9DA5D3
accent
#5FDE4A
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#15130B
muted
#84827C

Preview Lab

Preview with #CAB84B

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

Preview Lab → · Contrast checker → · Palette generator →

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