#A2AB2F#A2AB2F

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

Color values

HEX#A2AB2F
RGBrgb(162, 171, 47)
HSLhsl(64, 57%, 43%)
HSVhsv(64, 73%, 67%)
CMYKcmyk(5.3%, 0%, 72.5%, 32.9%)
CIE-LABlab(67.29, -18.65, 58.95)
CIE-LCHlch(67.29, 61.83, 107.55°)
OKLaboklab(71.16% -0.0571 0.1306)
OKLCHoklch(71.16% 0.143 113.6)
XYZxyz(29.9772, 37.0131, 8.2539)
Luminance0.3701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AB2F #382FAB
analogous
#AB762F #A2AB2F #64AB2F
triadic
#A2AB2F #2FA2AB #AB2FA2
tetradic
#A2AB2F #2FAB76 #382FAB #AB2F64
square
#A2AB2F #2FAB76 #382FAB #AB2F64
split-complementary
#A2AB2F #2F64AB #762FAB
monochromatic
#474B15 #757B22 #A2AB2F #C4CD4A #D3DA7A

Accessibility & contrast

On white

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

On black

8.40
#A2AB2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AB2F
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AB2F#FFFFFF#000000##000000
##A2AB2F1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a2ab2f;
/* rgb */ color: rgb(162, 171, 47);
/* oklch */ color: oklch(71.2% 0.143 113.6);
Tailwind
colors: {
  custom: {
    50: '#c1c370',
    500: '#a2ab2f',
    950: '#000000',
  },
}
SCSS
$custom: #a2ab2f;
$custom-light: #c1c370;
$custom-dark: #000000;
JSON
{
  "hex": "#a2ab2f",
  "rgb": {
    "r": 162,
    "g": 171,
    "b": 47
  },
  "hsl": {
    "h": 64.355,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.71159,
    "c": 0.1426,
    "h": 113.6
  },
  "luminance": 0.37012
}

Semantic roles & 50–950 ramp

primary
#A2AB2F
secondary
#7973C3
accent
#48E053
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A2AB2F

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

Preview Lab → · Contrast checker → · Palette generator →

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