#AFD32F#AFD32F

#AFD32F is a light, vivid yellow-green. Relative luminance 0.559; OKLCH L 81.3% C 0.183 H 121.8°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#AFD32F
RGBrgb(175, 211, 47)
HSLhsl(73, 65%, 51%)
HSVhsv(73, 78%, 83%)
CMYKcmyk(17.1%, 0%, 77.7%, 17.3%)
CIE-LABlab(79.56, -32.62, 70.79)
CIE-LCHlch(79.56, 77.94, 114.74°)
OKLaboklab(81.27% -0.0964 0.1553)
OKLCHoklch(81.27% 0.183 121.8)
XYZxyz(41.4872, 55.9077, 11.2944)
Luminance0.5591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD32F #532FD3
analogous
#D3A52F #AFD32F #5DD32F
triadic
#AFD32F #2FAFD3 #D32FAF
tetradic
#AFD32F #2FD3A5 #532FD3 #D32F5D
square
#AFD32F #2FD3A5 #532FD3 #D32F5D
split-complementary
#AFD32F #2F5DD3 #A52FD3
monochromatic
#5D7018 #86A222 #AFD32F #C2DE62 #D6E894

Accessibility & contrast

On white

1.72
#AFD32F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#AFD32F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD32F
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD32F#FFFFFF#000000##000000
##AFD32F1.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C600
Deuteranopia (green-blind)
#DBC53F
Tritanopia (blue-blind)
#B9C8B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd32f;
/* rgb */ color: rgb(175, 211, 47);
/* oklch */ color: oklch(81.3% 0.183 121.8);
Tailwind
colors: {
  custom: {
    50: '#cbe075',
    500: '#afd32f',
    950: '#000000',
  },
}
SCSS
$custom: #afd32f;
$custom-light: #cbe075;
$custom-dark: #000000;
JSON
{
  "hex": "#afd32f",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 47
  },
  "hsl": {
    "h": 73.171,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.81271,
    "c": 0.18274,
    "h": 121.8
  },
  "luminance": 0.55908
}

Semantic roles & 50–950 ramp

primary
#AFD32F
secondary
#3E2D79
accent
#40E865
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFD32F

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

Preview Lab → · Contrast checker → · Palette generator →

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