#CAB162#CAB162

#CAB162 is a light, moderate yellow. Relative luminance 0.449; OKLCH L 76.5% C 0.103 H 92.3°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#CAB162
RGBrgb(202, 177, 98)
HSLhsl(46, 50%, 59%)
HSVhsv(46, 51%, 79%)
CMYKcmyk(0%, 12.4%, 51.5%, 20.8%)
CIE-LABlab(72.82, -1.13, 43.39)
CIE-LCHlch(72.82, 43.40, 91.49°)
OKLaboklab(76.53% -0.0041 0.1032)
OKLCHoklch(76.53% 0.103 92.3)
XYZxyz(42.2854, 44.8846, 17.9892)
Luminance0.4488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAB162 #627BCA
analogous
#CA7D62 #CAB162 #AFCA62
triadic
#CAB162 #62CAB1 #B162CA
tetradic
#CAB162 #62CA7D #627BCA #CA62AF
square
#CAB162 #62CA7D #627BCA #CA62AF
split-complementary
#CAB162 #62AFCA #7D62CA
monochromatic
#85702D #B3963C #CAB162 #D9C890 #E9DEBE

Accessibility & contrast

On white

2.10
#CAB162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#CAB162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAB162
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAB162#FFFFFF#000000##000000
##CAB1621.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AE5B
Deuteranopia (green-blind)
#C6B665
Tritanopia (blue-blind)
#D8A69E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cab162;
/* rgb */ color: rgb(202, 177, 98);
/* oklch */ color: oklch(76.5% 0.103 92.3);
Tailwind
colors: {
  custom: {
    50: '#dcc890',
    500: '#cab162',
    950: '#000000',
  },
}
SCSS
$custom: #cab162;
$custom-light: #dcc890;
$custom-dark: #000000;
JSON
{
  "hex": "#cab162",
  "rgb": {
    "r": 202,
    "g": 177,
    "b": 98
  },
  "hsl": {
    "h": 45.577,
    "s": 49.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.76533,
    "c": 0.10327,
    "h": 92.3
  },
  "luminance": 0.44883
}

Semantic roles & 50–950 ramp

primary
#CAB162
secondary
#AFB9D8
accent
#70D94F
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130D
muted
#83827D

Preview Lab

Preview with #CAB162

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

Preview Lab → · Contrast checker → · Palette generator →

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