#A2B31A#A2B31A

#A2B31A is a light, vivid yellow. Relative luminance 0.400; OKLCH L 72.9% C 0.161 H 116.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#A2B31A
RGBrgb(162, 179, 26)
HSLhsl(67, 75%, 40%)
HSVhsv(67, 85%, 70%)
CMYKcmyk(9.5%, 0%, 85.5%, 29.8%)
CIE-LABlab(69.47, -23.45, 67.03)
CIE-LCHlch(69.47, 71.02, 109.28°)
OKLaboklab(72.88% -0.072 0.1443)
OKLCHoklch(72.88% 0.161 116.5)
XYZxyz(31.2077, 39.9966, 7.0532)
Luminance0.4000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B31A #2B1AB3
analogous
#B3781A #A2B31A #55B31A
triadic
#A2B31A #1AA2B3 #B31AA2
tetradic
#A2B31A #1AB378 #2B1AB3 #B31A55
square
#A2B31A #1AB378 #2B1AB3 #B31A55
split-complementary
#A2B31A #1A55B3 #781AB3
monochromatic
#41480A #727E12 #A2B31A #CCE02A #D9E860

Accessibility & contrast

On white

2.33
#A2B31A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#A2B31A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B31A
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B31A#FFFFFF#000000##000000
##A2B31A1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BFAB2C
Tritanopia (blue-blind)
#ADA899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b31a;
/* rgb */ color: rgb(162, 179, 26);
/* oklch */ color: oklch(72.9% 0.161 116.5);
Tailwind
colors: {
  custom: {
    50: '#c2c969',
    500: '#a2b31a',
    950: '#000000',
  },
}
SCSS
$custom: #a2b31a;
$custom-light: #c2c969;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b31a",
  "rgb": {
    "r": 162,
    "g": 179,
    "b": 26
  },
  "hsl": {
    "h": 66.667,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.72879,
    "c": 0.16122,
    "h": 116.5
  },
  "luminance": 0.39996
}

Semantic roles & 50–950 ramp

primary
#A2B31A
secondary
#695DCC
accent
#37F14B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B31A

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

Preview Lab → · Contrast checker → · Palette generator →

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