#CAB962#CAB962

#CAB962 is a light, moderate yellow. Relative luminance 0.481; OKLCH L 78.2% C 0.110 H 98.5°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#CAB962
RGBrgb(202, 185, 98)
HSLhsl(50, 50%, 59%)
HSVhsv(50, 51%, 79%)
CMYKcmyk(0%, 8.4%, 51.5%, 20.8%)
CIE-LABlab(74.91, -5.33, 45.91)
CIE-LCHlch(74.91, 46.22, 96.62°)
OKLaboklab(78.19% -0.0162 0.1087)
OKLCHoklch(78.19% 0.11 98.5)
XYZxyz(43.9121, 48.1380, 18.5314)
Luminance0.4814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB962 #6273CA
analogous
#CA8562 #CAB962 #A7CA62
triadic
#CAB962 #62CAB9 #B962CA
tetradic
#CAB962 #62CA85 #6273CA #CA62A7
square
#CAB962 #62CA85 #6273CA #CA62A7
split-complementary
#CAB962 #62A7CA #8562CA
monochromatic
#85762D #B39F3C #CAB962 #D9CD90 #E9E2BE

Accessibility & contrast

On white

1.98
#CAB962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.63
#CAB962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB962
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB962#FFFFFF#000000##000000
##CAB9621.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B55A
Deuteranopia (green-blind)
#CCBB66
Tritanopia (blue-blind)
#D7AEA5
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cab962;
/* rgb */ color: rgb(202, 185, 98);
/* oklch */ color: oklch(78.2% 0.110 98.5);
Tailwind
colors: {
  custom: {
    50: '#dccd91',
    500: '#cab962',
    950: '#000000',
  },
}
SCSS
$custom: #cab962;
$custom-light: #dccd91;
$custom-dark: #000000;
JSON
{
  "hex": "#cab962",
  "rgb": {
    "r": 202,
    "g": 185,
    "b": 98
  },
  "hsl": {
    "h": 50.192,
    "s": 49.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.78191,
    "c": 0.10994,
    "h": 98.5
  },
  "luminance": 0.48136
}

Semantic roles & 50–950 ramp

primary
#CAB962
secondary
#AFB6D8
accent
#65D94F
background
#FDFCF9
surface
#FBF9F1
border
#D4D2CB
text
#15130D
muted
#83827E

Preview Lab

Preview with #CAB962

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

Preview Lab → · Contrast checker → · Palette generator →

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