#A8AB31#A8AB31

#A8AB31 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.7% C 0.140 H 110.9°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#A8AB31
RGBrgb(168, 171, 49)
HSLhsl(61, 55%, 43%)
HSVhsv(61, 71%, 67%)
CMYKcmyk(1.8%, 0%, 71.3%, 32.9%)
CIE-LABlab(67.78, -15.96, 58.87)
CIE-LCHlch(67.78, 60.99, 105.17°)
OKLaboklab(71.68% -0.0498 0.1306)
OKLCHoklch(71.68% 0.14 110.9)
XYZxyz(31.2668, 37.6732, 8.5298)
Luminance0.3767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AB31 #3431AB
analogous
#AB7131 #A8AB31 #6BAB31
triadic
#A8AB31 #31A8AB #AB31A8
tetradic
#A8AB31 #31AB71 #3431AB #AB316B
square
#A8AB31 #31AB71 #3431AB #AB316B
split-complementary
#A8AB31 #316BAB #7131AB
monochromatic
#4B4C16 #797B23 #A8AB31 #C9CC4D #D7DA7D

Accessibility & contrast

On white

2.46
#A8AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#A8AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8AB31
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8AB31#FFFFFF#000000##000000
##A8AB311.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31B
Deuteranopia (green-blind)
#B9A73A
Tritanopia (blue-blind)
#B4A093
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #a8ab31;
/* rgb */ color: rgb(168, 171, 49);
/* oklch */ color: oklch(71.7% 0.140 110.9);
Tailwind
colors: {
  custom: {
    50: '#c5c372',
    500: '#a8ab31',
    950: '#000000',
  },
}
SCSS
$custom: #a8ab31;
$custom-light: #c5c372;
$custom-dark: #000000;
JSON
{
  "hex": "#a8ab31",
  "rgb": {
    "r": 168,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 61.475,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71675,
    "c": 0.13979,
    "h": 110.9
  },
  "luminance": 0.37672
}

Semantic roles & 50–950 ramp

primary
#A8AB31
secondary
#7775C2
accent
#49DF4D
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A8AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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