#AB8D31#AB8D31

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

Color values

HEX#AB8D31
RGBrgb(171, 141, 49)
HSLhsl(45, 55%, 43%)
HSVhsv(45, 71%, 67%)
CMYKcmyk(0%, 17.5%, 71.3%, 32.9%)
CIE-LABlab(59.83, 1.34, 51.07)
CIE-LCHlch(59.83, 51.09, 88.50°)
OKLaboklab(65.42% -0.0009 0.114)
OKLCHoklch(65.42% 0.114 90.5)
XYZxyz(26.8753, 27.9310, 6.8808)
Luminance0.2793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8D31 #314FAB
analogous
#AB5031 #AB8D31 #8CAB31
triadic
#AB8D31 #31AB8D #8D31AB
tetradic
#AB8D31 #31AB50 #314FAB #AB318C
square
#AB8D31 #31AB50 #314FAB #AB318C
split-complementary
#AB8D31 #318CAB #5031AB
monochromatic
#4C3F16 #7B6623 #AB8D31 #CCAD4D #DAC37D

Accessibility & contrast

On white

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

On black

6.59
#AB8D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB8D31
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8D31#FFFFFF#000000##000000
##AB8D311.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab8d31;
/* rgb */ color: rgb(171, 141, 49);
/* oklch */ color: oklch(65.4% 0.114 90.5);
Tailwind
colors: {
  custom: {
    50: '#c8ae6f',
    500: '#ab8d31',
    950: '#000000',
  },
}
SCSS
$custom: #ab8d31;
$custom-light: #c8ae6f;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8d31",
  "rgb": {
    "r": 171,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 45.246,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.65423,
    "c": 0.11404,
    "h": 90.5
  },
  "luminance": 0.27929
}

Semantic roles & 50–950 ramp

primary
#AB8D31
secondary
#7588C2
accent
#6EDF49
background
#FCFAF6
surface
#F9F4EC
border
#D2CEC7
text
#141008
muted
#827F7B

Preview Lab

Preview with #AB8D31

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

Preview Lab → · Contrast checker → · Palette generator →

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