#A7AB31#A7AB31

#A7AB31 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.6% C 0.140 H 111.3°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#A7AB31
RGBrgb(167, 171, 49)
HSLhsl(62, 55%, 43%)
HSVhsv(62, 71%, 67%)
CMYKcmyk(2.3%, 0%, 71.3%, 32.9%)
CIE-LABlab(67.70, -16.39, 58.76)
CIE-LCHlch(67.70, 61.01, 105.59°)
OKLaboklab(71.59% -0.0509 0.1304)
OKLCHoklch(71.59% 0.14 111.3)
XYZxyz(31.0547, 37.5639, 8.5198)
Luminance0.3756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AB31 #3531AB
analogous
#AB7231 #A7AB31 #6AAB31
triadic
#A7AB31 #31A7AB #AB31A7
tetradic
#A7AB31 #31AB72 #3531AB #AB316A
square
#A7AB31 #31AB72 #3531AB #AB316A
split-complementary
#A7AB31 #316AAB #7231AB
monochromatic
#4A4C16 #797B23 #A7AB31 #C8CC4D #D7DA7D

Accessibility & contrast

On white

2.47
#A7AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#A7AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AB31
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AB31#FFFFFF#000000##000000
##A7AB311.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7ab31;
/* rgb */ color: rgb(167, 171, 49);
/* oklch */ color: oklch(71.6% 0.140 111.3);
Tailwind
colors: {
  custom: {
    50: '#c4c372',
    500: '#a7ab31',
    950: '#000000',
  },
}
SCSS
$custom: #a7ab31;
$custom-light: #c4c372;
$custom-dark: #000000;
JSON
{
  "hex": "#a7ab31",
  "rgb": {
    "r": 167,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 61.967,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.7159,
    "c": 0.14003,
    "h": 111.3
  },
  "luminance": 0.37563
}

Semantic roles & 50–950 ramp

primary
#A7AB31
secondary
#7875C2
accent
#49DF4E
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A7AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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