#AB9E31#AB9E31

#AB9E31 is a light, vivid yellow. Relative luminance 0.333; OKLCH L 69.1% C 0.127 H 102.4°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#AB9E31
RGBrgb(171, 158, 49)
HSLhsl(54, 55%, 43%)
HSVhsv(54, 71%, 67%)
CMYKcmyk(0%, 7.6%, 71.3%, 32.9%)
CIE-LABlab(64.43, -7.86, 55.68)
CIE-LCHlch(64.43, 56.23, 98.04°)
OKLaboklab(69.07% -0.0272 0.1238)
OKLCHoklch(69.07% 0.127 102.4)
XYZxyz(29.5771, 33.3347, 7.7814)
Luminance0.3333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB9E31 #313EAB
analogous
#AB6131 #AB9E31 #7BAB31
triadic
#AB9E31 #31AB9E #9E31AB
tetradic
#AB9E31 #31AB61 #313EAB #AB317B
square
#AB9E31 #31AB61 #313EAB #AB317B
split-complementary
#AB9E31 #317BAB #6131AB
monochromatic
#4C4616 #7B7223 #AB9E31 #CCBF4D #DAD07D

Accessibility & contrast

On white

2.74
#AB9E31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AB9E31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB9E31
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB9E31#FFFFFF#000000##000000
##AB9E311.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9920
Deuteranopia (green-blind)
#B09F38
Tritanopia (blue-blind)
#B89388
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab9e31;
/* rgb */ color: rgb(171, 158, 49);
/* oklch */ color: oklch(69.1% 0.127 102.4);
Tailwind
colors: {
  custom: {
    50: '#c7ba70',
    500: '#ab9e31',
    950: '#000000',
  },
}
SCSS
$custom: #ab9e31;
$custom-light: #c7ba70;
$custom-dark: #000000;
JSON
{
  "hex": "#ab9e31",
  "rgb": {
    "r": 171,
    "g": 158,
    "b": 49
  },
  "hsl": {
    "h": 53.607,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.69069,
    "c": 0.12674,
    "h": 102.4
  },
  "luminance": 0.33333
}

Semantic roles & 50–950 ramp

primary
#AB9E31
secondary
#757EC2
accent
#59DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AB9E31

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

Preview Lab → · Contrast checker → · Palette generator →

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