#AB9F31#AB9F31

#AB9F31 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.3% C 0.128 H 103.0°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#AB9F31
RGBrgb(171, 159, 49)
HSLhsl(54, 55%, 43%)
HSVhsv(54, 71%, 67%)
CMYKcmyk(0%, 7%, 71.3%, 32.9%)
CIE-LABlab(64.71, -8.39, 55.95)
CIE-LCHlch(64.71, 56.57, 98.53°)
OKLaboklab(69.29% -0.0287 0.1244)
OKLCHoklch(69.29% 0.128 103)
XYZxyz(29.7484, 33.6772, 7.8385)
Luminance0.3368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9F31 #313DAB
analogous
#AB6231 #AB9F31 #7AAB31
triadic
#AB9F31 #31AB9F #9F31AB
tetradic
#AB9F31 #31AB62 #313DAB #AB317A
square
#AB9F31 #31AB62 #313DAB #AB317A
split-complementary
#AB9F31 #317AAB #6231AB
monochromatic
#4C4716 #7B7323 #AB9F31 #CCC04D #DAD17D

Accessibility & contrast

On white

2.71
#AB9F31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#AB9F31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9F31
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9F31#FFFFFF#000000##000000
##AB9F311.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1F
Deuteranopia (green-blind)
#B19F38
Tritanopia (blue-blind)
#B89489
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ab9f31;
/* rgb */ color: rgb(171, 159, 49);
/* oklch */ color: oklch(69.3% 0.128 103.0);
Tailwind
colors: {
  custom: {
    50: '#c7bb70',
    500: '#ab9f31',
    950: '#000000',
  },
}
SCSS
$custom: #ab9f31;
$custom-light: #c7bb70;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9f31",
  "rgb": {
    "r": 171,
    "g": 159,
    "b": 49
  },
  "hsl": {
    "h": 54.098,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.69287,
    "c": 0.12762,
    "h": 103
  },
  "luminance": 0.33676
}

Semantic roles & 50–950 ramp

primary
#AB9F31
secondary
#757DC2
accent
#58DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9F31

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

Preview Lab → · Contrast checker → · Palette generator →

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