#AB8A16#AB8A16

#AB8A16 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.6% C 0.127 H 90.9°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AB8A16
RGBrgb(171, 138, 22)
HSLhsl(47, 77%, 38%)
HSVhsv(47, 87%, 67%)
CMYKcmyk(0%, 19.3%, 87.1%, 32.9%)
CIE-LABlab(58.88, 1.95, 59.55)
CIE-LCHlch(58.88, 59.58, 88.12°)
OKLaboklab(64.63% -0.0019 0.1266)
OKLCHoklch(64.63% 0.127 90.9)
XYZxyz(26.0295, 26.8945, 4.5791)
Luminance0.2689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8A16 #1637AB
analogous
#AB3F16 #AB8A16 #82AB16
triadic
#AB8A16 #16AB8A #8A16AB
tetradic
#AB8A16 #16AB3F #1637AB #AB1682
square
#AB8A16 #16AB3F #1637AB #AB1682
split-complementary
#AB8A16 #1682AB #3F16AB
monochromatic
#3F3208 #755E0F #AB8A16 #E1B61D #E9C853

Accessibility & contrast

On white

3.29
#AB8A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#AB8A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB8A16
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8A16#FFFFFF#000000##000000
##AB8A161.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#A3921F
Tritanopia (blue-blind)
#BA7D76
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ab8a16;
/* rgb */ color: rgb(171, 138, 22);
/* oklch */ color: oklch(64.6% 0.127 90.9);
Tailwind
colors: {
  custom: {
    50: '#c9ab61',
    500: '#ab8a16',
    950: '#000000',
  },
}
SCSS
$custom: #ab8a16;
$custom-light: #c9ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8a16",
  "rgb": {
    "r": 171,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 46.711,
    "s": 77.202,
    "l": 37.843
  },
  "oklch": {
    "l": 0.64626,
    "c": 0.12663,
    "h": 90.9
  },
  "luminance": 0.26893
}

Semantic roles & 50–950 ramp

primary
#AB8A16
secondary
#526DCB
accent
#5FF434
background
#FDFAF6
surface
#FAF4EB
border
#D3CEC6
text
#141006
muted
#837F7A

Preview Lab

Preview with #AB8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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