#AFD42A#AFD42A

#AFD42A is a light, vivid yellow-green. Relative luminance 0.564; OKLCH L 81.5% C 0.186 H 122.0°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#AFD42A
RGBrgb(175, 212, 42)
HSLhsl(73, 67%, 50%)
HSVhsv(73, 80%, 83%)
CMYKcmyk(17.5%, 0%, 80.2%, 16.9%)
CIE-LABlab(79.82, -33.28, 72.41)
CIE-LCHlch(79.82, 79.69, 114.68°)
OKLaboklab(81.47% -0.0985 0.1579)
OKLCHoklch(81.47% 0.186 122)
XYZxyz(41.6413, 56.3680, 10.8764)
Luminance0.5637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD42A #4F2AD4
analogous
#D4A42A #AFD42A #5AD42A
triadic
#AFD42A #2AAFD4 #D42AAF
tetradic
#AFD42A #2AD4A4 #4F2AD4 #D42A5A
square
#AFD42A #2AD4A4 #4F2AD4 #D42A5A
split-complementary
#AFD42A #2A5AD4 #A42AD4
monochromatic
#5B6E16 #85A120 #AFD42A #C2DF5C #D5E98F

Accessibility & contrast

On white

1.71
#AFD42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#AFD42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD42A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD42A#FFFFFF#000000##000000
##AFD42A1.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C700
Deuteranopia (green-blind)
#DCC63C
Tritanopia (blue-blind)
#B9C9B5
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd42a;
/* rgb */ color: rgb(175, 212, 42);
/* oklch */ color: oklch(81.5% 0.186 122.0);
Tailwind
colors: {
  custom: {
    50: '#cbe173',
    500: '#afd42a',
    950: '#000000',
  },
}
SCSS
$custom: #afd42a;
$custom-light: #cbe173;
$custom-dark: #000000;
JSON
{
  "hex": "#afd42a",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 42
  },
  "hsl": {
    "h": 73.059,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.81475,
    "c": 0.18611,
    "h": 122
  },
  "luminance": 0.56368
}

Semantic roles & 50–950 ramp

primary
#AFD42A
secondary
#3C2B77
accent
#3EEA63
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFD42A

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

Preview Lab → · Contrast checker → · Palette generator →

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