#A2AB1F#A2AB1F

#A2AB1F is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.1% C 0.151 H 113.6°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#A2AB1F
RGBrgb(162, 171, 31)
HSLhsl(64, 69%, 40%)
HSVhsv(64, 82%, 67%)
CMYKcmyk(5.3%, 0%, 81.9%, 32.9%)
CIE-LABlab(67.21, -19.31, 63.90)
CIE-LCHlch(67.21, 66.75, 106.82°)
OKLaboklab(71.07% -0.0603 0.1383)
OKLCHoklch(71.07% 0.151 113.6)
XYZxyz(29.7115, 36.9068, 6.8546)
Luminance0.3691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2AB1F #281FAB
analogous
#AB6E1F #A2AB1F #5CAB1F
triadic
#A2AB1F #1FA2AB #AB1FA2
tetradic
#A2AB1F #1FAB6E #281FAB #AB1F5C
square
#A2AB1F #1FAB6E #281FAB #AB1F5C
split-complementary
#A2AB1F #1F5CAB #6E1FAB
monochromatic
#40430C #717716 #A2AB1F #CED92E #DAE362

Accessibility & contrast

On white

2.51
#A2AB1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#A2AB1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2AB1F
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2AB1F#FFFFFF#000000##000000
##A2AB1F1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B8A52D
Tritanopia (blue-blind)
#ADA092
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a2ab1f;
/* rgb */ color: rgb(162, 171, 31);
/* oklch */ color: oklch(71.1% 0.151 113.6);
Tailwind
colors: {
  custom: {
    50: '#c1c369',
    500: '#a2ab1f',
    950: '#000000',
  },
}
SCSS
$custom: #a2ab1f;
$custom-light: #c1c369;
$custom-dark: #000000;
JSON
{
  "hex": "#a2ab1f",
  "rgb": {
    "r": 162,
    "g": 171,
    "b": 31
  },
  "hsl": {
    "h": 63.857,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.7107,
    "c": 0.15088,
    "h": 113.6
  },
  "luminance": 0.36906
}

Semantic roles & 50–950 ramp

primary
#A2AB1F
secondary
#655EC7
accent
#3CEC47
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A2AB1F

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

Preview Lab → · Contrast checker → · Palette generator →

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