#AFE766#AFE766

#AFE766 is a very light, vivid yellow-green. Relative luminance 0.672; OKLCH L 86.3% C 0.169 H 129.0°. Best body text is #000000 at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#AFE766
RGBrgb(175, 231, 102)
HSLhsl(86, 73%, 65%)
HSVhsv(86, 56%, 91%)
CMYKcmyk(24.2%, 0%, 55.8%, 9.4%)
CIE-LABlab(85.62, -38.03, 56.13)
CIE-LCHlch(85.62, 67.80, 124.12°)
OKLaboklab(86.3% -0.1067 0.1316)
OKLCHoklch(86.3% 0.169 129)
XYZxyz(48.6531, 67.2241, 22.9800)
Luminance0.6723 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE766 #9E66E7
analogous
#E7DF66 #AFE766 #6EE766
triadic
#AFE766 #66AFE7 #E766AF
tetradic
#AFE766 #66E7DF #9E66E7 #E7666E
square
#AFE766 #66E7DF #9E66E7 #E7666E
split-complementary
#AFE766 #666EE7 #DF66E7
monochromatic
#73B61D #93DF31 #AFE766 #CBEF9B #E6F8D0

Accessibility & contrast

On white

1.45
#AFE766 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.45
#AFE766 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE766
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE766#FFFFFF#000000##000000
##AFE7661.001.4514.4514.45
#FFFFFF1.451.0021.0021.00
#00000014.4521.001.001.00
##00000014.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D959
Deuteranopia (green-blind)
#E9D56F
Tritanopia (blue-blind)
#B3DECB
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #afe766;
/* rgb */ color: rgb(175, 231, 102);
/* oklch */ color: oklch(86.3% 0.169 129.0);
Tailwind
colors: {
  custom: {
    50: '#caef95',
    500: '#afe766',
    950: '#000000',
  },
}
SCSS
$custom: #afe766;
$custom-light: #caef95;
$custom-dark: #000000;
JSON
{
  "hex": "#afe766",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 102
  },
  "hsl": {
    "h": 86.047,
    "s": 72.881,
    "l": 65.294
  },
  "oklch": {
    "l": 0.86296,
    "c": 0.16946,
    "h": 129
  },
  "luminance": 0.67225
}

Semantic roles & 50–950 ramp

primary
#AFE766
secondary
#703BB6
accent
#11D566
background
#FEFFFC
surface
#FBFEF5
border
#D4D6CF
text
#13160E
muted
#83857F

Preview Lab

Preview with #AFE766

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

Preview Lab → · Contrast checker → · Palette generator →

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