#AB9B31#AB9B31

#AB9B31 is a light, vivid yellow. Relative luminance 0.323; OKLCH L 68.4% C 0.124 H 100.5°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#AB9B31
RGBrgb(171, 155, 49)
HSLhsl(52, 55%, 43%)
HSVhsv(52, 71%, 67%)
CMYKcmyk(0%, 9.4%, 71.3%, 32.9%)
CIE-LABlab(63.61, -6.26, 54.86)
CIE-LCHlch(63.61, 55.22, 96.51°)
OKLaboklab(68.42% -0.0226 0.1221)
OKLCHoklch(68.42% 0.124 100.5)
XYZxyz(29.0716, 32.3237, 7.6129)
Luminance0.3232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9B31 #3141AB
analogous
#AB5E31 #AB9B31 #7EAB31
triadic
#AB9B31 #31AB9B #9B31AB
tetradic
#AB9B31 #31AB5E #3141AB #AB317E
square
#AB9B31 #31AB5E #3141AB #AB317E
split-complementary
#AB9B31 #317EAB #5E31AB
monochromatic
#4C4516 #7B7023 #AB9B31 #CCBB4D #DACD7D

Accessibility & contrast

On white

2.81
#AB9B31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#AB9B31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9B31
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9B31#FFFFFF#000000##000000
##AB9B311.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9721
Deuteranopia (green-blind)
#AE9D38
Tritanopia (blue-blind)
#B89086
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab9b31;
/* rgb */ color: rgb(171, 155, 49);
/* oklch */ color: oklch(68.4% 0.124 100.5);
Tailwind
colors: {
  custom: {
    50: '#c7b870',
    500: '#ab9b31',
    950: '#000000',
  },
}
SCSS
$custom: #ab9b31;
$custom-light: #c7b870;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9b31",
  "rgb": {
    "r": 171,
    "g": 155,
    "b": 49
  },
  "hsl": {
    "h": 52.131,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.68416,
    "c": 0.12415,
    "h": 100.5
  },
  "luminance": 0.32322
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB9B31

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

Preview Lab → · Contrast checker → · Palette generator →

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