#AB8F2F#AB8F2F

#AB8F2F is a light, moderate yellow. Relative luminance 0.285; OKLCH L 65.8% C 0.117 H 92.3°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#AB8F2F
RGBrgb(171, 143, 47)
HSLhsl(46, 57%, 43%)
HSVhsv(46, 73%, 67%)
CMYKcmyk(0%, 16.4%, 72.5%, 32.9%)
CIE-LABlab(60.35, 0.14, 52.43)
CIE-LCHlch(60.35, 52.43, 89.85°)
OKLaboklab(65.83% -0.0046 0.1165)
OKLCHoklch(65.83% 0.117 92.3)
XYZxyz(27.1316, 28.5097, 6.7626)
Luminance0.2851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8F2F #2F4BAB
analogous
#AB512F #AB8F2F #89AB2F
triadic
#AB8F2F #2FAB8F #8F2FAB
tetradic
#AB8F2F #2FAB51 #2F4BAB #AB2F89
square
#AB8F2F #2FAB51 #2F4BAB #AB2F89
split-complementary
#AB8F2F #2F89AB #512FAB
monochromatic
#4B3F15 #7B6722 #AB8F2F #CDB04A #DAC57A

Accessibility & contrast

On white

3.13
#AB8F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AB8F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB8F2F
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8F2F#FFFFFF#000000##000000
##AB8F2F1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8D21
Deuteranopia (green-blind)
#A69534
Tritanopia (blue-blind)
#B9837C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ab8f2f;
/* rgb */ color: rgb(171, 143, 47);
/* oklch */ color: oklch(65.8% 0.117 92.3);
Tailwind
colors: {
  custom: {
    50: '#c8af6e',
    500: '#ab8f2f',
    950: '#000000',
  },
}
SCSS
$custom: #ab8f2f;
$custom-light: #c8af6e;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8f2f",
  "rgb": {
    "r": 171,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 46.452,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.65829,
    "c": 0.11663,
    "h": 92.3
  },
  "luminance": 0.28508
}

Semantic roles & 50–950 ramp

primary
#AB8F2F
secondary
#7385C3
accent
#6AE048
background
#FCFAF6
surface
#F9F4EC
border
#D2CEC7
text
#141007
muted
#827F7A

Preview Lab

Preview with #AB8F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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