#A2AB31#A2AB31

#A2AB31 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.2% C 0.141 H 113.6°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#A2AB31
RGBrgb(162, 171, 49)
HSLhsl(64, 55%, 43%)
HSVhsv(64, 71%, 67%)
CMYKcmyk(5.3%, 0%, 71.3%, 32.9%)
CIE-LABlab(67.30, -18.55, 58.24)
CIE-LCHlch(67.30, 61.12, 107.66°)
OKLaboklab(71.17% -0.0567 0.1295)
OKLCHoklch(71.17% 0.141 113.6)
XYZxyz(30.0185, 37.0296, 8.4712)
Luminance0.3703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AB31 #3A31AB
analogous
#AB7731 #A2AB31 #65AB31
triadic
#A2AB31 #31A2AB #AB31A2
tetradic
#A2AB31 #31AB77 #3A31AB #AB3165
square
#A2AB31 #31AB77 #3A31AB #AB3165
split-complementary
#A2AB31 #3165AB #7731AB
monochromatic
#484C16 #757B23 #A2AB31 #C3CC4D #D3DA7D

Accessibility & contrast

On white

2.50
#A2AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#A2AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AB31
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AB31#FFFFFF#000000##000000
##A2AB311.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31C
Deuteranopia (green-blind)
#B7A53A
Tritanopia (blue-blind)
#ADA193
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a2ab31;
/* rgb */ color: rgb(162, 171, 49);
/* oklch */ color: oklch(71.2% 0.141 113.6);
Tailwind
colors: {
  custom: {
    50: '#c1c371',
    500: '#a2ab31',
    950: '#000000',
  },
}
SCSS
$custom: #a2ab31;
$custom-light: #c1c371;
$custom-dark: #000000;
JSON
{
  "hex": "#a2ab31",
  "rgb": {
    "r": 162,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 64.426,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71173,
    "c": 0.14135,
    "h": 113.6
  },
  "luminance": 0.37029
}

Semantic roles & 50–950 ramp

primary
#A2AB31
secondary
#7B75C2
accent
#49DF54
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A2AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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