#AFE878#AFE878

#AFE878 is a very light, vivid yellow-green. Relative luminance 0.682; OKLCH L 86.7% C 0.154 H 131.2°. Best body text is #000000 at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#AFE878
RGBrgb(175, 232, 120)
HSLhsl(91, 71%, 69%)
HSVhsv(91, 48%, 91%)
CMYKcmyk(24.6%, 0%, 48.3%, 9%)
CIE-LABlab(86.10, -36.65, 48.40)
CIE-LCHlch(86.10, 60.71, 127.13°)
OKLaboklab(86.75% -0.1015 0.1162)
OKLCHoklch(86.75% 0.154 131.2)
XYZxyz(49.9253, 68.1820, 28.2957)
Luminance0.6818 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE878 #B178E8
analogous
#E7E878 #AFE878 #78E879
triadic
#AFE878 #78AFE8 #E878AF
tetradic
#AFE878 #78E7E8 #B178E8 #E87978
square
#AFE878 #78E7E8 #B178E8 #E87978
split-complementary
#AFE878 #7978E8 #E878E7
monochromatic
#71C421 #90DF44 #AFE878 #CEF1AC #EDFAE1

Accessibility & contrast

On white

1.43
#AFE878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.64
#AFE878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE878
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE878#FFFFFF#000000##000000
##AFE8781.001.4314.6414.64
#FFFFFF1.431.0021.0021.00
#00000014.6421.001.001.00
##00000014.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA6E
Deuteranopia (green-blind)
#E8D67F
Tritanopia (blue-blind)
#B2E0CE
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe878;
/* rgb */ color: rgb(175, 232, 120);
/* oklch */ color: oklch(86.7% 0.154 131.2);
Tailwind
colors: {
  custom: {
    50: '#c9efa1',
    500: '#afe878',
    950: '#000000',
  },
}
SCSS
$custom: #afe878;
$custom-light: #c9efa1;
$custom-dark: #000000;
JSON
{
  "hex": "#afe878",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 120
  },
  "hsl": {
    "h": 90.536,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.86749,
    "c": 0.15429,
    "h": 131.2
  },
  "luminance": 0.68183
}

Semantic roles & 50–950 ramp

primary
#AFE878
secondary
#8344C0
accent
#13D374
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE878

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

Preview Lab → · Contrast checker → · Palette generator →

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