#AFE22F#AFE22F

#AFE22F is a very light, vivid yellow-green. Relative luminance 0.637; OKLCH L 84.7% C 0.200 H 125.1°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#AFE22F
RGBrgb(175, 226, 47)
HSLhsl(77, 76%, 54%)
HSVhsv(77, 79%, 89%)
CMYKcmyk(22.6%, 0%, 79.2%, 11.4%)
CIE-LABlab(83.82, -39.42, 74.65)
CIE-LCHlch(83.82, 84.42, 117.84°)
OKLaboklab(84.71% -0.1149 0.1634)
OKLCHoklch(84.71% 0.2 125.1)
XYZxyz(45.3891, 63.7113, 12.5950)
Luminance0.6371 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE22F #622FE2
analogous
#E2BB2F #AFE22F #55E22F
triadic
#AFE22F #2FAFE2 #E22FAF
tetradic
#AFE22F #2FE2BB #622FE2 #E22F55
square
#AFE22F #2FE2BB #622FE2 #E22F55
split-complementary
#AFE22F #2F55E2 #BB2FE2
monochromatic
#648412 #8CBA1A #AFE22F #C4E965 #D8F19A

Accessibility & contrast

On white

1.53
#AFE22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#AFE22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE22F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE22F#FFFFFF#000000##000000
##AFE22F1.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD300
Deuteranopia (green-blind)
#E8D042
Tritanopia (blue-blind)
#B7D7C2
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afe22f;
/* rgb */ color: rgb(175, 226, 47);
/* oklch */ color: oklch(84.7% 0.200 125.1);
Tailwind
colors: {
  custom: {
    50: '#cbeb77',
    500: '#afe22f',
    950: '#000000',
  },
}
SCSS
$custom: #afe22f;
$custom-light: #cbeb77;
$custom-dark: #000000;
JSON
{
  "hex": "#afe22f",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 47
  },
  "hsl": {
    "h": 77.095,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.84713,
    "c": 0.19978,
    "h": 125.1
  },
  "luminance": 0.63712
}

Semantic roles & 50–950 ramp

primary
#AFE22F
secondary
#462B8A
accent
#36F26B
background
#FEFEFB
surface
#FBFDF2
border
#D4D5CC
text
#14160A
muted
#83847D

Preview Lab

Preview with #AFE22F

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

Preview Lab → · Contrast checker → · Palette generator →

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