#A2C42F#A2C42F

#A2C42F is a light, vivid yellow-green. Relative luminance 0.474; OKLCH L 76.9% C 0.171 H 122.1°. Best body text is #000000 at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#A2C42F
RGBrgb(162, 196, 47)
HSLhsl(74, 61%, 48%)
HSVhsv(74, 76%, 77%)
CMYKcmyk(17.3%, 0%, 76%, 23.1%)
CIE-LABlab(74.42, -30.85, 65.73)
CIE-LCHlch(74.42, 72.61, 115.14°)
OKLaboklab(76.9% -0.0908 0.1449)
OKLCHoklch(76.9% 0.171 122.1)
XYZxyz(35.1539, 47.3664, 9.9794)
Luminance0.4737 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2C42F #512FC4
analogous
#C49B2F #A2C42F #58C42F
triadic
#A2C42F #2FA2C4 #C42FA2
tetradic
#A2C42F #2FC49B #512FC4 #C42F58
square
#A2C42F #2FC49B #512FC4 #C42F58
split-complementary
#A2C42F #2F58C4 #9B2FC4
monochromatic
#506117 #799323 #A2C42F #BAD759 #CFE38A

Accessibility & contrast

On white

2.01
#A2C42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.47
#A2C42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2C42F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2C42F#FFFFFF#000000##000000
##A2C42F1.002.0110.4710.47
#FFFFFF2.011.0021.0021.00
#00000010.4721.001.001.00
##00000010.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B806
Deuteranopia (green-blind)
#CCB73D
Tritanopia (blue-blind)
#ABBAA8
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #a2c42f;
/* rgb */ color: rgb(162, 196, 47);
/* oklch */ color: oklch(76.9% 0.171 122.1);
Tailwind
colors: {
  custom: {
    50: '#c1d673',
    500: '#a2c42f',
    950: '#000000',
  },
}
SCSS
$custom: #a2c42f;
$custom-light: #c1d673;
$custom-dark: #000000;
JSON
{
  "hex": "#a2c42f",
  "rgb": {
    "r": 162,
    "g": 196,
    "b": 47
  },
  "hsl": {
    "h": 73.691,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.76901,
    "c": 0.17104,
    "h": 122.1
  },
  "luminance": 0.47366
}

Semantic roles & 50–950 ramp

primary
#A2C42F
secondary
#9382CD
accent
#43E468
background
#FCFDF7
surface
#F8FAED
border
#D1D3C8
text
#131409
muted
#82837B

Preview Lab

Preview with #A2C42F

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

Preview Lab → · Contrast checker → · Palette generator →

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