#AFE786#AFE786

#AFE786 is a very light, vivid yellow-green. Relative luminance 0.680; OKLCH L 86.7% C 0.139 H 133.1°. Best body text is #000000 at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#AFE786
RGBrgb(175, 231, 134)
HSLhsl(95, 67%, 72%)
HSVhsv(95, 42%, 91%)
CMYKcmyk(24.2%, 0%, 42%, 9.4%)
CIE-LABlab(86.00, -34.53, 41.51)
CIE-LCHlch(86.00, 53.99, 129.76°)
OKLaboklab(86.73% -0.0949 0.1014)
OKLCHoklch(86.73% 0.139 133.1)
XYZxyz(50.5572, 67.9857, 33.0085)
Luminance0.6799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE786 #BE86E7
analogous
#E0E786 #AFE786 #86E78E
triadic
#AFE786 #86AFE7 #E786AF
tetradic
#AFE786 #86E0E7 #BE86E7 #E78E86
square
#AFE786 #86E0E7 #BE86E7 #E78E86
split-complementary
#AFE786 #8E86E7 #E786E0
monochromatic
#6DCA28 #8DDD53 #AFE786 #D1F1B9 #EEFAE5

Accessibility & contrast

On white

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

On black

14.60
#AFE786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE786
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE786#FFFFFF#000000##000000
##AFE7861.001.4414.6014.60
#FFFFFF1.441.0021.0021.00
#00000014.6021.001.001.00
##00000014.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EEDA7F
Deuteranopia (green-blind)
#E6D58C
Tritanopia (blue-blind)
#B0E0CF
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe786;
/* rgb */ color: rgb(175, 231, 134);
/* oklch */ color: oklch(86.7% 0.139 133.1);
Tailwind
colors: {
  custom: {
    50: '#c9efaa',
    500: '#afe786',
    950: '#000000',
  },
}
SCSS
$custom: #afe786;
$custom-light: #c9efaa;
$custom-dark: #000000;
JSON
{
  "hex": "#afe786",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 134
  },
  "hsl": {
    "h": 94.639,
    "s": 66.897,
    "l": 71.569
  },
  "oklch": {
    "l": 0.86729,
    "c": 0.13887,
    "h": 133.1
  },
  "luminance": 0.67987
}

Semantic roles & 50–950 ramp

primary
#AFE786
secondary
#9151C0
accent
#17CF81
background
#FEFFFD
surface
#FAFEF7
border
#D3D6D0
text
#131610
muted
#838581

Preview Lab

Preview with #AFE786

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

Preview Lab → · Contrast checker → · Palette generator →

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