#A2C21F#A2C21F

#A2C21F is a light, vivid yellow-green. Relative luminance 0.464; OKLCH L 76.4% C 0.176 H 121.2°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#A2C21F
RGBrgb(162, 194, 31)
HSLhsl(72, 72%, 44%)
HSVhsv(72, 84%, 76%)
CMYKcmyk(16.5%, 0%, 84%, 23.9%)
CIE-LABlab(73.78, -30.53, 69.55)
CIE-LCHlch(73.78, 75.95, 113.70°)
OKLaboklab(76.36% -0.091 0.1505)
OKLCHoklch(76.36% 0.176 121.2)
XYZxyz(34.4401, 46.3639, 8.4308)
Luminance0.4636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2C21F #3F1FC2
analogous
#C2911F #A2C21F #51C21F
triadic
#A2C21F #1FA2C2 #C21FA2
tetradic
#A2C21F #1FC291 #3F1FC2 #C21F51
square
#A2C21F #1FC291 #3F1FC2 #C21F51
split-complementary
#A2C21F #1F51C2 #911FC2
monochromatic
#4A580E #768D17 #A2C21F #C0E03E #D1E973

Accessibility & contrast

On white

2.04
#A2C21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.27
#A2C21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2C21F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2C21F#FFFFFF#000000##000000
##A2C21F1.002.0410.2710.27
#FFFFFF2.041.0021.0021.00
#00000010.2721.001.001.00
##00000010.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB600
Deuteranopia (green-blind)
#CAB532
Tritanopia (blue-blind)
#ABB7A6
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #a2c21f;
/* rgb */ color: rgb(162, 194, 31);
/* oklch */ color: oklch(76.4% 0.176 121.2);
Tailwind
colors: {
  custom: {
    50: '#c2d46d',
    500: '#a2c21f',
    950: '#000000',
  },
}
SCSS
$custom: #a2c21f;
$custom-light: #c2d46d;
$custom-dark: #000000;
JSON
{
  "hex": "#a2c21f",
  "rgb": {
    "r": 162,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 71.779,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.76361,
    "c": 0.17586,
    "h": 121.2
  },
  "luminance": 0.46364
}

Semantic roles & 50–950 ramp

primary
#A2C21F
secondary
#816DCF
accent
#39EF5C
background
#FCFDF7
surface
#F8FAED
border
#D1D3C8
text
#131408
muted
#82837B

Preview Lab

Preview with #A2C21F

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

Preview Lab → · Contrast checker → · Palette generator →

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