#AB8A1F#AB8A1F

#AB8A1F is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.7% C 0.123 H 90.2°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#AB8A1F
RGBrgb(171, 138, 31)
HSLhsl(46, 69%, 40%)
HSVhsv(46, 82%, 67%)
CMYKcmyk(0%, 19.3%, 81.9%, 32.9%)
CIE-LABlab(58.91, 2.22, 56.98)
CIE-LCHlch(58.91, 57.02, 87.77°)
OKLaboklab(64.67% -0.0004 0.1229)
OKLCHoklch(64.67% 0.123 90.2)
XYZxyz(26.1320, 26.9355, 5.1188)
Luminance0.2693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8A1F #1F40AB
analogous
#AB441F #AB8A1F #86AB1F
triadic
#AB8A1F #1FAB8A #8A1FAB
tetradic
#AB8A1F #1FAB44 #1F40AB #AB1F86
square
#AB8A1F #1FAB44 #1F40AB #AB1F86
split-complementary
#AB8A1F #1F86AB #441FAB
monochromatic
#43360C #776016 #AB8A1F #D9B12E #E3C462

Accessibility & contrast

On white

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

On black

6.39
#AB8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB8A1F
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8A1F#FFFFFF#000000##000000
##AB8A1F1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab8a1f;
/* rgb */ color: rgb(171, 138, 31);
/* oklch */ color: oklch(64.7% 0.123 90.2);
Tailwind
colors: {
  custom: {
    50: '#c9ab65',
    500: '#ab8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #ab8a1f;
$custom-light: #c9ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8a1f",
  "rgb": {
    "r": 171,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 45.857,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.64668,
    "c": 0.12292,
    "h": 90.2
  },
  "luminance": 0.26934
}

Semantic roles & 50–950 ramp

primary
#AB8A1F
secondary
#5E77C7
accent
#65EC3C
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#141006
muted
#827F7A

Preview Lab

Preview with #AB8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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