#CAB82F#CAB82F

#CAB82F is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.5% C 0.148 H 101.4°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#CAB82F
RGBrgb(202, 184, 47)
HSLhsl(53, 62%, 49%)
HSVhsv(53, 77%, 79%)
CMYKcmyk(0%, 8.9%, 76.7%, 20.8%)
CIE-LABlab(74.22, -8.00, 66.67)
CIE-LCHlch(74.22, 67.15, 96.84°)
OKLaboklab(77.5% -0.0294 0.1455)
OKLCHoklch(77.5% 0.148 101.4)
XYZxyz(42.0127, 47.0447, 9.5563)
Luminance0.4704 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB82F #2F41CA
analogous
#CA6B2F #CAB82F #8FCA2F
triadic
#CAB82F #2FCAB8 #B82FCA
tetradic
#CAB82F #2FCA6B #2F41CA #CA2F8F
square
#CAB82F #2FCA6B #2F41CA #CA2F8F
split-complementary
#CAB82F #2F8FCA #6B2FCA
monochromatic
#675E18 #988B23 #CAB82F #D9CB5D #E5DB8F

Accessibility & contrast

On white

2.02
#CAB82F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.41
#CAB82F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB82F
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB82F#FFFFFF#000000##000000
##CAB82F1.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB20E
Deuteranopia (green-blind)
#CFBA39
Tritanopia (blue-blind)
#DAAA9E
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cab82f;
/* rgb */ color: rgb(202, 184, 47);
/* oklch */ color: oklch(77.5% 0.148 101.4);
Tailwind
colors: {
  custom: {
    50: '#decc73',
    500: '#cab82f',
    950: '#000000',
  },
}
SCSS
$custom: #cab82f;
$custom-light: #decc73;
$custom-dark: #000000;
JSON
{
  "hex": "#cab82f",
  "rgb": {
    "r": 202,
    "g": 184,
    "b": 47
  },
  "hsl": {
    "h": 53.032,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.77503,
    "c": 0.14847,
    "h": 101.4
  },
  "luminance": 0.47043
}

Semantic roles & 50–950 ramp

primary
#CAB82F
secondary
#868ECF
accent
#55E542
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CAB82F

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

Preview Lab → · Contrast checker → · Palette generator →

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