#AFE252#AFE252

#AFE252 is a very light, vivid yellow-green. Relative luminance 0.641; OKLCH L 85.0% C 0.179 H 126.6°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#AFE252
RGBrgb(175, 226, 82)
HSLhsl(81, 71%, 60%)
HSVhsv(81, 64%, 89%)
CMYKcmyk(22.6%, 0%, 63.7%, 11.4%)
CIE-LABlab(84.03, -37.45, 62.87)
CIE-LCHlch(84.03, 73.18, 120.78°)
OKLaboklab(84.95% -0.1068 0.1438)
OKLCHoklch(84.95% 0.179 126.6)
XYZxyz(46.3986, 64.1151, 17.9120)
Luminance0.6412 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE252 #8552E2
analogous
#E2CD52 #AFE252 #67E252
triadic
#AFE252 #52AFE2 #E252AF
tetradic
#AFE252 #52E2CD #8552E2 #E25267
square
#AFE252 #52E2CD #8552E2 #E25267
split-complementary
#AFE252 #5267E2 #CD52E2
monochromatic
#709F1B #95D323 #AFE252 #C7EB86 #DFF4BB

Accessibility & contrast

On white

1.52
#AFE252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.82
#AFE252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE252
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE252#FFFFFF#000000##000000
##AFE2521.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD440
Deuteranopia (green-blind)
#E6D15D
Tritanopia (blue-blind)
#B5D8C4
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe252;
/* rgb */ color: rgb(175, 226, 82);
/* oklch */ color: oklch(85.0% 0.179 126.6);
Tailwind
colors: {
  custom: {
    50: '#caeb89',
    500: '#afe252',
    950: '#000000',
  },
}
SCSS
$custom: #afe252;
$custom-light: #caeb89;
$custom-dark: #000000;
JSON
{
  "hex": "#afe252",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 82
  },
  "hsl": {
    "h": 81.25,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.84951,
    "c": 0.17913,
    "h": 126.6
  },
  "luminance": 0.64116
}

Semantic roles & 50–950 ramp

primary
#AFE252
secondary
#5C36A2
accent
#12D357
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFE252

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

Preview Lab → · Contrast checker → · Palette generator →

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