#AFE178#AFE178

#AFE178 is a very light, vivid yellow-green. Relative luminance 0.643; OKLCH L 85.2% C 0.144 H 129.9°. Best body text is #000000 at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#AFE178
RGBrgb(175, 225, 120)
HSLhsl(89, 64%, 68%)
HSVhsv(89, 47%, 88%)
CMYKcmyk(22.2%, 0%, 46.7%, 11.8%)
CIE-LABlab(84.13, -33.45, 45.99)
CIE-LCHlch(84.13, 56.86, 126.03°)
OKLaboklab(85.16% -0.0926 0.1108)
OKLCHoklch(85.16% 0.144 129.9)
XYZxyz(47.9940, 64.3195, 27.6520)
Luminance0.6432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE178 #AA78E1
analogous
#E1DE78 #AFE178 #7BE178
triadic
#AFE178 #78AFE1 #E178AF
tetradic
#AFE178 #78E1DE #AA78E1 #E1787B
square
#AFE178 #78E1DE #AA78E1 #E1787B
split-complementary
#AFE178 #787BE1 #DE78E1
monochromatic
#73B628 #91D646 #AFE178 #CDECAA #EAF7DC

Accessibility & contrast

On white

1.51
#AFE178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.86
#AFE178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE178
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE178#FFFFFF#000000##000000
##AFE1781.001.5113.8613.86
#FFFFFF1.511.0021.0021.00
#00000013.8621.001.001.00
##00000013.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD46F
Deuteranopia (green-blind)
#E2D17E
Tritanopia (blue-blind)
#B2D9C8
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe178;
/* rgb */ color: rgb(175, 225, 120);
/* oklch */ color: oklch(85.2% 0.144 129.9);
Tailwind
colors: {
  custom: {
    50: '#c9eaa1',
    500: '#afe178',
    950: '#000000',
  },
}
SCSS
$custom: #afe178;
$custom-light: #c9eaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#afe178",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 120
  },
  "hsl": {
    "h": 88.571,
    "s": 63.636,
    "l": 67.647
  },
  "oklch": {
    "l": 0.85162,
    "c": 0.14443,
    "h": 129.9
  },
  "luminance": 0.6432
}

Semantic roles & 50–950 ramp

primary
#AFE178
secondary
#7C46B7
accent
#1ACB6F
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160F
muted
#838480

Preview Lab

Preview with #AFE178

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

Preview Lab → · Contrast checker → · Palette generator →

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