#AB9A31#AB9A31

#AB9A31 is a light, vivid yellow. Relative luminance 0.320; OKLCH L 68.2% C 0.123 H 99.9°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#AB9A31
RGBrgb(171, 154, 49)
HSLhsl(52, 55%, 43%)
HSVhsv(52, 71%, 67%)
CMYKcmyk(0%, 9.9%, 71.3%, 32.9%)
CIE-LABlab(63.34, -5.72, 54.59)
CIE-LCHlch(63.34, 54.89, 95.99°)
OKLaboklab(68.2% -0.0211 0.1215)
OKLCHoklch(68.2% 0.123 99.9)
XYZxyz(28.9059, 31.9922, 7.5577)
Luminance0.3199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9A31 #3142AB
analogous
#AB5D31 #AB9A31 #7FAB31
triadic
#AB9A31 #31AB9A #9A31AB
tetradic
#AB9A31 #31AB5D #3142AB #AB317F
square
#AB9A31 #31AB5D #3142AB #AB317F
split-complementary
#AB9A31 #317FAB #5D31AB
monochromatic
#4C4416 #7B6F23 #AB9A31 #CCBA4D #DACD7D

Accessibility & contrast

On white

2.84
#AB9A31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#AB9A31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9A31
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9A31#FFFFFF#000000##000000
##AB9A311.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99621
Deuteranopia (green-blind)
#AE9C37
Tritanopia (blue-blind)
#B88F85
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab9a31;
/* rgb */ color: rgb(171, 154, 49);
/* oklch */ color: oklch(68.2% 0.123 99.9);
Tailwind
colors: {
  custom: {
    50: '#c7b770',
    500: '#ab9a31',
    950: '#000000',
  },
}
SCSS
$custom: #ab9a31;
$custom-light: #c7b770;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9a31",
  "rgb": {
    "r": 171,
    "g": 154,
    "b": 49
  },
  "hsl": {
    "h": 51.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.682,
    "c": 0.12331,
    "h": 99.9
  },
  "luminance": 0.31991
}

Semantic roles & 50–950 ramp

primary
#AB9A31
secondary
#7580C2
accent
#5EDF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9A31

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

Preview Lab → · Contrast checker → · Palette generator →

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