#A2A81F#A2A81F

#A2A81F is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.4% C 0.148 H 112.3°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#A2A81F
RGBrgb(162, 168, 31)
HSLhsl(63, 69%, 39%)
HSVhsv(63, 82%, 66%)
CMYKcmyk(3.6%, 0%, 81.5%, 34.1%)
CIE-LABlab(66.36, -17.79, 63.16)
CIE-LCHlch(66.36, 65.62, 105.73°)
OKLaboklab(70.39% -0.0561 0.1367)
OKLCHoklch(70.39% 0.148 112.3)
XYZxyz(29.1513, 35.7863, 6.6679)
Luminance0.3579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A81F #251FA8
analogous
#A86A1F #A2A81F #5EA81F
triadic
#A2A81F #1FA2A8 #A81FA2
tetradic
#A2A81F #1FA86A #251FA8 #A81F5E
square
#A2A81F #1FA86A #251FA8 #A81F5E
split-complementary
#A2A81F #1F5EA8 #6A1FA8
monochromatic
#3E410C #707415 #A2A81F #D1D82C #DCE260

Accessibility & contrast

On white

2.57
#A2A81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#A2A81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A81F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A81F#FFFFFF#000000##000000
##A2A81F1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#B6A32D
Tritanopia (blue-blind)
#AE9D8F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a2a81f;
/* rgb */ color: rgb(162, 168, 31);
/* oklch */ color: oklch(70.4% 0.148 112.3);
Tailwind
colors: {
  custom: {
    50: '#c1c169',
    500: '#a2a81f',
    950: '#000000',
  },
}
SCSS
$custom: #a2a81f;
$custom-light: #c1c169;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a81f",
  "rgb": {
    "r": 162,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 62.628,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70388,
    "c": 0.14778,
    "h": 112.3
  },
  "luminance": 0.35786
}

Semantic roles & 50–950 ramp

primary
#A2A81F
secondary
#615DC6
accent
#3CEC44
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A2A81F

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

Preview Lab → · Contrast checker → · Palette generator →

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