#AFE478#AFE478

#AFE478 is a very light, vivid yellow-green. Relative luminance 0.660; OKLCH L 85.8% C 0.149 H 130.5°. Best body text is #000000 at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#AFE478
RGBrgb(175, 228, 120)
HSLhsl(89, 67%, 68%)
HSVhsv(89, 47%, 89%)
CMYKcmyk(23.2%, 0%, 47.4%, 10.6%)
CIE-LABlab(84.97, -34.83, 47.02)
CIE-LCHlch(84.97, 58.52, 126.52°)
OKLaboklab(85.84% -0.0965 0.1131)
OKLCHoklch(85.84% 0.149 130.5)
XYZxyz(48.8122, 65.9558, 27.9247)
Luminance0.6596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE478 #AD78E4
analogous
#E4E378 #AFE478 #79E478
triadic
#AFE478 #78AFE4 #E478AF
tetradic
#AFE478 #78E4E3 #AD78E4 #E47879
square
#AFE478 #78E4E3 #AD78E4 #E47879
split-complementary
#AFE478 #7879E4 #E378E4
monochromatic
#72BC26 #91DA45 #AFE478 #CDEEAB #EBF8DE

Accessibility & contrast

On white

1.48
#AFE478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.19
#AFE478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE478
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE478#FFFFFF#000000##000000
##AFE4781.001.4814.1914.19
#FFFFFF1.481.0021.0021.00
#00000014.1921.001.001.00
##00000014.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD76F
Deuteranopia (green-blind)
#E5D37E
Tritanopia (blue-blind)
#B2DCCB
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #afe478;
/* rgb */ color: rgb(175, 228, 120);
/* oklch */ color: oklch(85.8% 0.149 130.5);
Tailwind
colors: {
  custom: {
    50: '#c9eca1',
    500: '#afe478',
    950: '#000000',
  },
}
SCSS
$custom: #afe478;
$custom-light: #c9eca1;
$custom-dark: #000000;
JSON
{
  "hex": "#afe478",
  "rgb": {
    "r": 175,
    "g": 228,
    "b": 120
  },
  "hsl": {
    "h": 89.444,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.85842,
    "c": 0.14867,
    "h": 130.5
  },
  "luminance": 0.65957
}

Semantic roles & 50–950 ramp

primary
#AFE478
secondary
#7F45BB
accent
#17CF71
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160F
muted
#838480

Preview Lab

Preview with #AFE478

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

Preview Lab → · Contrast checker → · Palette generator →

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