#AFE157#AFE157

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

Color values

HEX#AFE157
RGBrgb(175, 225, 87)
HSLhsl(82, 70%, 61%)
HSVhsv(82, 61%, 88%)
CMYKcmyk(22.2%, 0%, 61.3%, 11.8%)
CIE-LABlab(83.78, -36.62, 60.55)
CIE-LCHlch(83.78, 70.77, 121.16°)
OKLaboklab(84.77% -0.104 0.1395)
OKLCHoklch(84.77% 0.174 126.7)
XYZxyz(46.3247, 63.6518, 18.8604)
Luminance0.6365 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE157 #8957E1
analogous
#E1CE57 #AFE157 #6AE157
triadic
#AFE157 #57AFE1 #E157AF
tetradic
#AFE157 #57E1CE #8957E1 #E1576A
square
#AFE157 #57E1CE #8957E1 #E1576A
split-complementary
#AFE157 #576AE1 #CE57E1
monochromatic
#71A11D #95D526 #AFE157 #C8EA8B #E0F4BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFE157#FFFFFF#000000##000000
##AFE1571.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)
#ECD347
Deuteranopia (green-blind)
#E5D061
Tritanopia (blue-blind)
#B5D7C4
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afe157;
/* rgb */ color: rgb(175, 225, 87);
/* oklch */ color: oklch(84.8% 0.174 126.7);
Tailwind
colors: {
  custom: {
    50: '#caea8c',
    500: '#afe157',
    950: '#000000',
  },
}
SCSS
$custom: #afe157;
$custom-light: #caea8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe157",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 87
  },
  "hsl": {
    "h": 81.739,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.84769,
    "c": 0.17405,
    "h": 126.7
  },
  "luminance": 0.63653
}

Semantic roles & 50–950 ramp

primary
#AFE157
secondary
#5F38A4
accent
#14D259
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFE157

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

Preview Lab → · Contrast checker → · Palette generator →

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