#AFE781#AFE781

#AFE781 is a very light, vivid yellow-green. Relative luminance 0.679; OKLCH L 86.7% C 0.144 H 132.3°. Best body text is #000000 at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#AFE781
RGBrgb(175, 231, 129)
HSLhsl(93, 68%, 71%)
HSVhsv(93, 44%, 91%)
CMYKcmyk(24.2%, 0%, 44.2%, 9.4%)
CIE-LABlab(85.93, -35.15, 43.87)
CIE-LCHlch(85.93, 56.21, 128.70°)
OKLaboklab(86.65% -0.0968 0.1065)
OKLCHoklch(86.65% 0.144 132.3)
XYZxyz(50.2167, 67.8495, 31.2152)
Luminance0.6785 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE781 #B981E7
analogous
#E2E781 #AFE781 #81E786
triadic
#AFE781 #81AFE7 #E781AF
tetradic
#AFE781 #81E2E7 #B981E7 #E78681
square
#AFE781 #81E2E7 #B981E7 #E78681
split-complementary
#AFE781 #8681E7 #E781E2
monochromatic
#6FC826 #8EDD4E #AFE781 #D0F1B4 #EFFAE5

Accessibility & contrast

On white

1.44
#AFE781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.57
#AFE781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE781
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE781#FFFFFF#000000##000000
##AFE7811.001.4414.5714.57
#FFFFFF1.441.0021.0021.00
#00000014.5721.001.001.00
##00000014.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFDA79
Deuteranopia (green-blind)
#E6D587
Tritanopia (blue-blind)
#B1E0CF
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe781;
/* rgb */ color: rgb(175, 231, 129);
/* oklch */ color: oklch(86.7% 0.144 132.3);
Tailwind
colors: {
  custom: {
    50: '#c9efa7',
    500: '#afe781',
    950: '#000000',
  },
}
SCSS
$custom: #afe781;
$custom-light: #c9efa7;
$custom-dark: #000000;
JSON
{
  "hex": "#afe781",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 129
  },
  "hsl": {
    "h": 92.941,
    "s": 68,
    "l": 70.588
  },
  "oklch": {
    "l": 0.86652,
    "c": 0.14397,
    "h": 132.3
  },
  "luminance": 0.67851
}

Semantic roles & 50–950 ramp

primary
#AFE781
secondary
#8C4DC0
accent
#16D07C
background
#FEFFFC
surface
#FAFEF6
border
#D3D6D0
text
#131610
muted
#838580

Preview Lab

Preview with #AFE781

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

Preview Lab → · Contrast checker → · Palette generator →

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