#A2D940#A2D940

#A2D940 is a light, vivid yellow-green. Relative luminance 0.577; OKLCH L 81.9% C 0.186 H 127.4°. Best body text is #000000 at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#A2D940
RGBrgb(162, 217, 64)
HSLhsl(82, 67%, 55%)
HSVhsv(82, 71%, 85%)
CMYKcmyk(25.3%, 0%, 70.5%, 14.9%)
CIE-LABlab(80.56, -39.52, 65.92)
CIE-LCHlch(80.56, 76.86, 120.95°)
OKLaboklab(81.9% -0.1132 0.148)
OKLCHoklch(81.9% 0.186 127.4)
XYZxyz(40.6386, 57.6764, 13.8411)
Luminance0.5768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2D940 #7740D9
analogous
#D9C440 #A2D940 #55D940
triadic
#A2D940 #40A2D9 #D940A2
tetradic
#A2D940 #40D9C4 #7740D9 #D94055
square
#A2D940 #40D9C4 #7740D9 #D94055
split-complementary
#A2D940 #4055D9 #C440D9
monochromatic
#5E841A #83B724 #A2D940 #BBE373 #D4EDA6

Accessibility & contrast

On white

1.68
#A2D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.54
#A2D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2D940
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2D940#FFFFFF#000000##000000
##A2D9401.001.6812.5412.54
#FFFFFF1.681.0021.0021.00
#00000012.5421.001.001.00
##00000012.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA26
Deuteranopia (green-blind)
#DCC74E
Tritanopia (blue-blind)
#A8CFBB
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #a2d940;
/* rgb */ color: rgb(162, 217, 64);
/* oklch */ color: oklch(81.9% 0.186 127.4);
Tailwind
colors: {
  custom: {
    50: '#c2e57e',
    500: '#a2d940',
    950: '#000000',
  },
}
SCSS
$custom: #a2d940;
$custom-light: #c2e57e;
$custom-dark: #000000;
JSON
{
  "hex": "#a2d940",
  "rgb": {
    "r": 162,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 81.569,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81899,
    "c": 0.18634,
    "h": 127.4
  },
  "luminance": 0.57677
}

Semantic roles & 50–950 ramp

primary
#A2D940
secondary
#52328B
accent
#3EEA7C
background
#FDFEFB
surface
#F9FCF2
border
#D2D5CC
text
#13150B
muted
#82847E

Preview Lab

Preview with #A2D940

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

Preview Lab → · Contrast checker → · Palette generator →

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