#CAB84C#CAB84C

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

Color values

HEX#CAB84C
RGBrgb(202, 184, 76)
HSLhsl(51, 54%, 55%)
HSVhsv(51, 62%, 79%)
CMYKcmyk(0%, 8.9%, 62.4%, 20.8%)
CIE-LABlab(74.42, -6.49, 55.62)
CIE-LCHlch(74.42, 56.00, 96.66°)
OKLaboklab(77.73% -0.0221 0.1271)
OKLCHoklch(77.73% 0.129 99.9)
XYZxyz(42.8039, 47.3612, 13.7230)
Luminance0.4736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB84C #4C5ECA
analogous
#CA794C #CAB84C #9DCA4C
triadic
#CAB84C #4CCAB8 #B84CCA
tetradic
#CAB84C #4CCA79 #4C5ECA #CA4C9D
square
#CAB84C #4CCA79 #4C5ECA #CA4C9D
split-complementary
#CAB84C #4C9DCA #794CCA
monochromatic
#786C24 #A79632 #CAB84C #D8CB7B #E6DDAA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAB84C#FFFFFF#000000##000000
##CAB84C1.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)
#C8B340
Deuteranopia (green-blind)
#CDBA52
Tritanopia (blue-blind)
#D9ACA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cab84c;
/* rgb */ color: rgb(202, 184, 76);
/* oklch */ color: oklch(77.7% 0.129 99.9);
Tailwind
colors: {
  custom: {
    50: '#ddcd83',
    500: '#cab84c',
    950: '#000000',
  },
}
SCSS
$custom: #cab84c;
$custom-light: #ddcd83;
$custom-dark: #000000;
JSON
{
  "hex": "#cab84c",
  "rgb": {
    "r": 202,
    "g": 184,
    "b": 76
  },
  "hsl": {
    "h": 51.429,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.77727,
    "c": 0.12902,
    "h": 99.9
  },
  "luminance": 0.47359
}

Semantic roles & 50–950 ramp

primary
#CAB84C
secondary
#9EA6D4
accent
#5FDE4A
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #CAB84C

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

Preview Lab → · Contrast checker → · Palette generator →

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