#AFE158#AFE158

#AFE158 is a very light, vivid yellow-green. Relative luminance 0.637; OKLCH L 84.8% C 0.173 H 126.8°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#AFE158
RGBrgb(175, 225, 88)
HSLhsl(82, 70%, 61%)
HSVhsv(82, 61%, 88%)
CMYKcmyk(22.2%, 0%, 60.9%, 11.8%)
CIE-LABlab(83.79, -36.54, 60.14)
CIE-LCHlch(83.79, 70.37, 121.28°)
OKLaboklab(84.78% -0.1037 0.1388)
OKLCHoklch(84.78% 0.173 126.8)
XYZxyz(46.3659, 63.6683, 19.0771)
Luminance0.6367 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE158 #8A58E1
analogous
#E1CF58 #AFE158 #6BE158
triadic
#AFE158 #58AFE1 #E158AF
tetradic
#AFE158 #58E1CF #8A58E1 #E1586B
square
#AFE158 #58E1CF #8A58E1 #E1586B
split-complementary
#AFE158 #586BE1 #CF58E1
monochromatic
#71A21D #96D526 #AFE158 #C8EA8C #E1F4C0

Accessibility & contrast

On white

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

On black

13.73
#AFE158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE158
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE158#FFFFFF#000000##000000
##AFE1581.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD348
Deuteranopia (green-blind)
#E5D062
Tritanopia (blue-blind)
#B5D7C4
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afe158;
/* rgb */ color: rgb(175, 225, 88);
/* oklch */ color: oklch(84.8% 0.173 126.8);
Tailwind
colors: {
  custom: {
    50: '#caea8c',
    500: '#afe158',
    950: '#000000',
  },
}
SCSS
$custom: #afe158;
$custom-light: #caea8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe158",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 88
  },
  "hsl": {
    "h": 81.898,
    "s": 69.543,
    "l": 61.373
  },
  "oklch": {
    "l": 0.84778,
    "c": 0.17326,
    "h": 126.8
  },
  "luminance": 0.63669
}

Semantic roles & 50–950 ramp

primary
#AFE158
secondary
#6039A4
accent
#14D259
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFE158

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

Preview Lab → · Contrast checker → · Palette generator →

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