#CAB84F#CAB84F

#CAB84F is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.8% C 0.127 H 99.6°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#CAB84F
RGBrgb(202, 184, 79)
HSLhsl(51, 54%, 55%)
HSVhsv(51, 61%, 79%)
CMYKcmyk(0%, 8.9%, 60.9%, 20.8%)
CIE-LABlab(74.45, -6.29, 54.32)
CIE-LCHlch(74.45, 54.68, 96.60°)
OKLaboklab(77.76% -0.0212 0.1248)
OKLCHoklch(77.76% 0.127 99.6)
XYZxyz(42.9106, 47.4039, 14.2852)
Luminance0.4740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB84F #4F61CA
analogous
#CA7B4F #CAB84F #9ECA4F
triadic
#CAB84F #4FCAB8 #B84FCA
tetradic
#CAB84F #4FCA7B #4F61CA #CA4F9E
square
#CAB84F #4FCA7B #4F61CA #CA4F9E
split-complementary
#CAB84F #4F9ECA #7B4FCA
monochromatic
#7A6D25 #A99833 #CAB84F #D8CB7E #E6DEAD

Accessibility & contrast

On white

2.00
#CAB84F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#CAB84F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB84F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB84F#FFFFFF#000000##000000
##CAB84F1.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cab84f;
/* rgb */ color: rgb(202, 184, 79);
/* oklch */ color: oklch(77.8% 0.127 99.6);
Tailwind
colors: {
  custom: {
    50: '#ddcd84',
    500: '#cab84f',
    950: '#000000',
  },
}
SCSS
$custom: #cab84f;
$custom-light: #ddcd84;
$custom-dark: #000000;
JSON
{
  "hex": "#cab84f",
  "rgb": {
    "r": 202,
    "g": 184,
    "b": 79
  },
  "hsl": {
    "h": 51.22,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.77758,
    "c": 0.12653,
    "h": 99.6
  },
  "luminance": 0.47402
}

Semantic roles & 50–950 ramp

primary
#CAB84F
secondary
#A1A8D4
accent
#60DD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB84F

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

Preview Lab → · Contrast checker → · Palette generator →

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