#AB9831#AB9831

#AB9831 is a light, vivid yellow. Relative luminance 0.313; OKLCH L 67.8% C 0.122 H 98.5°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#AB9831
RGBrgb(171, 152, 49)
HSLhsl(51, 55%, 43%)
HSVhsv(51, 71%, 67%)
CMYKcmyk(0%, 11.1%, 71.3%, 32.9%)
CIE-LABlab(62.79, -4.65, 54.05)
CIE-LCHlch(62.79, 54.25, 94.92°)
OKLaboklab(67.77% -0.0181 0.1204)
OKLCHoklch(67.77% 0.122 98.5)
XYZxyz(28.5786, 31.3375, 7.4486)
Luminance0.3134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9831 #3144AB
analogous
#AB5B31 #AB9831 #81AB31
triadic
#AB9831 #31AB98 #9831AB
tetradic
#AB9831 #31AB5B #3144AB #AB3181
square
#AB9831 #31AB5B #3144AB #AB3181
split-complementary
#AB9831 #3181AB #5B31AB
monochromatic
#4C4316 #7B6E23 #AB9831 #CCB84D #DACB7D

Accessibility & contrast

On white

2.89
#AB9831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#AB9831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9831
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9831#FFFFFF#000000##000000
##AB98311.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79422
Deuteranopia (green-blind)
#AC9B37
Tritanopia (blue-blind)
#B88D83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab9831;
/* rgb */ color: rgb(171, 152, 49);
/* oklch */ color: oklch(67.8% 0.122 98.5);
Tailwind
colors: {
  custom: {
    50: '#c7b670',
    500: '#ab9831',
    950: '#000000',
  },
}
SCSS
$custom: #ab9831;
$custom-light: #c7b670;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9831",
  "rgb": {
    "r": 171,
    "g": 152,
    "b": 49
  },
  "hsl": {
    "h": 50.656,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.67767,
    "c": 0.1217,
    "h": 98.5
  },
  "luminance": 0.31336
}

Semantic roles & 50–950 ramp

primary
#AB9831
secondary
#7581C2
accent
#60DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9831

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

Preview Lab → · Contrast checker → · Palette generator →

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