#AB8D2F#AB8D2F

#AB8D2F is a light, moderate yellow. Relative luminance 0.279; OKLCH L 65.4% C 0.115 H 90.7°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#AB8D2F
RGBrgb(171, 141, 47)
HSLhsl(45, 57%, 43%)
HSVhsv(45, 73%, 67%)
CMYKcmyk(0%, 17.5%, 72.5%, 32.9%)
CIE-LABlab(59.81, 1.24, 51.89)
CIE-LCHlch(59.81, 51.91, 88.64°)
OKLaboklab(65.41% -0.0015 0.1154)
OKLCHoklch(65.41% 0.115 90.7)
XYZxyz(26.8340, 27.9145, 6.6634)
Luminance0.2791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8D2F #2F4DAB
analogous
#AB4F2F #AB8D2F #8BAB2F
triadic
#AB8D2F #2FAB8D #8D2FAB
tetradic
#AB8D2F #2FAB4F #2F4DAB #AB2F8B
square
#AB8D2F #2FAB4F #2F4DAB #AB2F8B
split-complementary
#AB8D2F #2F8BAB #4F2FAB
monochromatic
#4B3E15 #7B6522 #AB8D2F #CDAD4A #DAC37A

Accessibility & contrast

On white

3.19
#AB8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#AB8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB8D2F
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8D2F#FFFFFF#000000##000000
##AB8D2F1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B21
Deuteranopia (green-blind)
#A49434
Tritanopia (blue-blind)
#B9817A
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ab8d2f;
/* rgb */ color: rgb(171, 141, 47);
/* oklch */ color: oklch(65.4% 0.115 90.7);
Tailwind
colors: {
  custom: {
    50: '#c8ae6d',
    500: '#ab8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #ab8d2f;
$custom-light: #c8ae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8d2f",
  "rgb": {
    "r": 171,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 45.484,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.65407,
    "c": 0.11542,
    "h": 90.7
  },
  "luminance": 0.27913
}

Semantic roles & 50–950 ramp

primary
#AB8D2F
secondary
#7386C3
accent
#6DE048
background
#FCFAF6
surface
#F9F4EC
border
#D2CEC7
text
#141007
muted
#827F7A

Preview Lab

Preview with #AB8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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