#AB9931#AB9931

#AB9931 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.0% C 0.122 H 99.2°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#AB9931
RGBrgb(171, 153, 49)
HSLhsl(51, 55%, 43%)
HSVhsv(51, 71%, 67%)
CMYKcmyk(0%, 10.5%, 71.3%, 32.9%)
CIE-LABlab(63.06, -5.19, 54.32)
CIE-LCHlch(63.06, 54.57, 95.46°)
OKLaboklab(67.98% -0.0196 0.1209)
OKLCHoklch(67.98% 0.123 99.2)
XYZxyz(28.7415, 31.6635, 7.5029)
Luminance0.3166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9931 #3143AB
analogous
#AB5C31 #AB9931 #80AB31
triadic
#AB9931 #31AB99 #9931AB
tetradic
#AB9931 #31AB5C #3143AB #AB3180
square
#AB9931 #31AB5C #3143AB #AB3180
split-complementary
#AB9931 #3180AB #5C31AB
monochromatic
#4C4416 #7B6E23 #AB9931 #CCB94D #DACC7D

Accessibility & contrast

On white

2.86
#AB9931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#AB9931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9931
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9931#FFFFFF#000000##000000
##AB99311.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89521
Deuteranopia (green-blind)
#AD9B37
Tritanopia (blue-blind)
#B88E84
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab9931;
/* rgb */ color: rgb(171, 153, 49);
/* oklch */ color: oklch(68.0% 0.122 99.2);
Tailwind
colors: {
  custom: {
    50: '#c7b670',
    500: '#ab9931',
    950: '#000000',
  },
}
SCSS
$custom: #ab9931;
$custom-light: #c7b670;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9931",
  "rgb": {
    "r": 171,
    "g": 153,
    "b": 49
  },
  "hsl": {
    "h": 51.148,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.67983,
    "c": 0.1225,
    "h": 99.2
  },
  "luminance": 0.31662
}

Semantic roles & 50–950 ramp

primary
#AB9931
secondary
#7581C2
accent
#5FDF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9931

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

Preview Lab → · Contrast checker → · Palette generator →

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