#AFE981#AFE981

#AFE981 is a very light, vivid yellow-green. Relative luminance 0.690; OKLCH L 87.1% C 0.147 H 132.6°. Best body text is #000000 at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#AFE981
RGBrgb(175, 233, 129)
HSLhsl(93, 70%, 71%)
HSVhsv(93, 45%, 91%)
CMYKcmyk(24.9%, 0%, 44.6%, 8.6%)
CIE-LABlab(86.49, -36.06, 44.57)
CIE-LCHlch(86.49, 57.33, 128.98°)
OKLaboklab(87.11% -0.0994 0.1081)
OKLCHoklch(87.11% 0.147 132.6)
XYZxyz(50.7797, 68.9754, 31.4028)
Luminance0.6898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE981 #BB81E9
analogous
#E3E981 #AFE981 #81E987
triadic
#AFE981 #81AFE9 #E981AF
tetradic
#AFE981 #81E3E9 #BB81E9 #E98781
square
#AFE981 #81E3E9 #BB81E9 #E98781
split-complementary
#AFE981 #8781E9 #E981E3
monochromatic
#6ECC24 #8EE04D #AFE981 #D0F2B5 #EEFAE5

Accessibility & contrast

On white

1.42
#AFE981 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.80
#AFE981 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE981
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE981#FFFFFF#000000##000000
##AFE9811.001.4214.8014.80
#FFFFFF1.421.0021.0021.00
#00000014.8021.001.001.00
##00000014.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DB79
Deuteranopia (green-blind)
#E8D787
Tritanopia (blue-blind)
#B0E2D0
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #afe981;
/* rgb */ color: rgb(175, 233, 129);
/* oklch */ color: oklch(87.1% 0.147 132.6);
Tailwind
colors: {
  custom: {
    50: '#c9f0a7',
    500: '#afe981',
    950: '#000000',
  },
}
SCSS
$custom: #afe981;
$custom-light: #c9f0a7;
$custom-dark: #000000;
JSON
{
  "hex": "#afe981",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 129
  },
  "hsl": {
    "h": 93.462,
    "s": 70.27,
    "l": 70.98
  },
  "oklch": {
    "l": 0.87105,
    "c": 0.14685,
    "h": 132.6
  },
  "luminance": 0.68977
}

Semantic roles & 50–950 ramp

primary
#AFE981
secondary
#8E4CC2
accent
#13D27E
background
#FEFFFC
surface
#FAFEF6
border
#D3D6D0
text
#131610
muted
#838580

Preview Lab

Preview with #AFE981

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

Preview Lab → · Contrast checker → · Palette generator →

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