#A5AB31#A5AB31

#A5AB31 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.4% C 0.141 H 112.3°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#A5AB31
RGBrgb(165, 171, 49)
HSLhsl(63, 55%, 43%)
HSVhsv(63, 71%, 67%)
CMYKcmyk(3.5%, 0%, 71.3%, 32.9%)
CIE-LABlab(67.54, -17.25, 58.55)
CIE-LCHlch(67.54, 61.04, 106.42°)
OKLaboklab(71.42% -0.0532 0.1301)
OKLCHoklch(71.42% 0.141 112.3)
XYZxyz(30.6353, 37.3476, 8.5002)
Luminance0.3735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AB31 #3731AB
analogous
#AB7431 #A5AB31 #68AB31
triadic
#A5AB31 #31A5AB #AB31A5
tetradic
#A5AB31 #31AB74 #3731AB #AB3168
square
#A5AB31 #31AB74 #3731AB #AB3168
split-complementary
#A5AB31 #3168AB #7431AB
monochromatic
#494C16 #777B23 #A5AB31 #C6CC4D #D5DA7D

Accessibility & contrast

On white

2.48
#A5AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#A5AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AB31
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AB31#FFFFFF#000000##000000
##A5AB311.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31B
Deuteranopia (green-blind)
#B8A63A
Tritanopia (blue-blind)
#B0A193
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a5ab31;
/* rgb */ color: rgb(165, 171, 49);
/* oklch */ color: oklch(71.4% 0.141 112.3);
Tailwind
colors: {
  custom: {
    50: '#c3c371',
    500: '#a5ab31',
    950: '#000000',
  },
}
SCSS
$custom: #a5ab31;
$custom-light: #c3c371;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ab31",
  "rgb": {
    "r": 165,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 62.951,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71422,
    "c": 0.14053,
    "h": 112.3
  },
  "luminance": 0.37347
}

Semantic roles & 50–950 ramp

primary
#A5AB31
secondary
#7975C2
accent
#49DF50
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A5AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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