#AB9731#AB9731

#AB9731 is a light, vivid yellow. Relative luminance 0.310; OKLCH L 67.6% C 0.121 H 97.9°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#AB9731
RGBrgb(171, 151, 49)
HSLhsl(50, 55%, 43%)
HSVhsv(50, 71%, 67%)
CMYKcmyk(0%, 11.7%, 71.3%, 32.9%)
CIE-LABlab(62.52, -4.11, 53.78)
CIE-LCHlch(62.52, 53.94, 94.37°)
OKLaboklab(67.55% -0.0165 0.1198)
OKLCHoklch(67.55% 0.121 97.9)
XYZxyz(28.4169, 31.0143, 7.3947)
Luminance0.3101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9731 #3145AB
analogous
#AB5A31 #AB9731 #82AB31
triadic
#AB9731 #31AB97 #9731AB
tetradic
#AB9731 #31AB5A #3145AB #AB3182
square
#AB9731 #31AB5A #3145AB #AB3182
split-complementary
#AB9731 #3182AB #5A31AB
monochromatic
#4C4316 #7B6D23 #AB9731 #CCB74D #DACA7D

Accessibility & contrast

On white

2.92
#AB9731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#AB9731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9731
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9731#FFFFFF#000000##000000
##AB97311.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69322
Deuteranopia (green-blind)
#AB9A37
Tritanopia (blue-blind)
#B88C83
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab9731;
/* rgb */ color: rgb(171, 151, 49);
/* oklch */ color: oklch(67.6% 0.121 97.9);
Tailwind
colors: {
  custom: {
    50: '#c7b570',
    500: '#ab9731',
    950: '#000000',
  },
}
SCSS
$custom: #ab9731;
$custom-light: #c7b570;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9731",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 50.164,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.67552,
    "c": 0.12092,
    "h": 97.9
  },
  "luminance": 0.31013
}

Semantic roles & 50–950 ramp

primary
#AB9731
secondary
#7582C2
accent
#62DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9731

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

Preview Lab → · Contrast checker → · Palette generator →

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