#A2B940#A2B940

#A2B940 is a light, vivid yellow-green. Relative luminance 0.427; OKLCH L 74.5% C 0.147 H 119.3°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#A2B940
RGBrgb(162, 185, 64)
HSLhsl(71, 49%, 49%)
HSVhsv(71, 65%, 73%)
CMYKcmyk(12.4%, 0%, 65.4%, 27.5%)
CIE-LABlab(71.38, -24.62, 56.53)
CIE-LCHlch(71.38, 61.66, 113.53°)
OKLaboklab(74.49% -0.0721 0.1283)
OKLCHoklch(74.49% 0.147 119.3)
XYZxyz(33.1752, 42.7497, 11.3533)
Luminance0.4275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B940 #5740B9
analogous
#B99440 #A2B940 #66B940
triadic
#A2B940 #40A2B9 #B940A2
tetradic
#A2B940 #40B994 #5740B9 #B94066
square
#A2B940 #40B994 #5740B9 #B94066
split-complementary
#A2B940 #4066B9 #9440B9
monochromatic
#525E21 #7A8C30 #A2B940 #B9CC6B #CFDB98

Accessibility & contrast

On white

2.20
#A2B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#A2B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B940
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B940#FFFFFF#000000##000000
##A2B9401.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#C2AF49
Tritanopia (blue-blind)
#ABAFA0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #a2b940;
/* rgb */ color: rgb(162, 185, 64);
/* oklch */ color: oklch(74.5% 0.147 119.3);
Tailwind
colors: {
  custom: {
    50: '#c0ce7b',
    500: '#a2b940',
    950: '#000000',
  },
}
SCSS
$custom: #a2b940;
$custom-light: #c0ce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b940",
  "rgb": {
    "r": 162,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 71.405,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.74487,
    "c": 0.14715,
    "h": 119.3
  },
  "luminance": 0.42749
}

Semantic roles & 50–950 ramp

primary
#A2B940
secondary
#998EC7
accent
#50D86A
background
#FCFCF7
surface
#F8F9EE
border
#D1D2C9
text
#13130A
muted
#82827C

Preview Lab

Preview with #A2B940

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

Preview Lab → · Contrast checker → · Palette generator →

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