#AB9D31#AB9D31

#AB9D31 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.9% C 0.126 H 101.8°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AB9D31
RGBrgb(171, 157, 49)
HSLhsl(53, 55%, 43%)
HSVhsv(53, 71%, 67%)
CMYKcmyk(0%, 8.2%, 71.3%, 32.9%)
CIE-LABlab(64.16, -7.33, 55.41)
CIE-LCHlch(64.16, 55.89, 97.53°)
OKLaboklab(68.85% -0.0257 0.1232)
OKLCHoklch(68.85% 0.126 101.8)
XYZxyz(29.4072, 32.9949, 7.7248)
Luminance0.3299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9D31 #313FAB
analogous
#AB6031 #AB9D31 #7CAB31
triadic
#AB9D31 #31AB9D #9D31AB
tetradic
#AB9D31 #31AB60 #313FAB #AB317C
square
#AB9D31 #31AB60 #313FAB #AB317C
split-complementary
#AB9D31 #317CAB #6031AB
monochromatic
#4C4616 #7B7123 #AB9D31 #CCBD4D #DACF7D

Accessibility & contrast

On white

2.76
#AB9D31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#AB9D31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9D31
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9D31#FFFFFF#000000##000000
##AB9D311.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9820
Deuteranopia (green-blind)
#B09E38
Tritanopia (blue-blind)
#B89288
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab9d31;
/* rgb */ color: rgb(171, 157, 49);
/* oklch */ color: oklch(68.9% 0.126 101.8);
Tailwind
colors: {
  custom: {
    50: '#c7b970',
    500: '#ab9d31',
    950: '#000000',
  },
}
SCSS
$custom: #ab9d31;
$custom-light: #c7b970;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9d31",
  "rgb": {
    "r": 171,
    "g": 157,
    "b": 49
  },
  "hsl": {
    "h": 53.115,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.68851,
    "c": 0.12586,
    "h": 101.8
  },
  "luminance": 0.32994
}

Semantic roles & 50–950 ramp

primary
#AB9D31
secondary
#757EC2
accent
#5ADF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9D31

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

Preview Lab → · Contrast checker → · Palette generator →

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