#AFE98C#AFE98C

#AFE98C is a very light, vivid yellow-green. Relative luminance 0.693; OKLCH L 87.3% C 0.136 H 134.5°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#AFE98C
RGBrgb(175, 233, 140)
HSLhsl(97, 68%, 73%)
HSVhsv(97, 40%, 91%)
CMYKcmyk(24.9%, 0%, 39.9%, 8.6%)
CIE-LABlab(86.64, -34.68, 39.37)
CIE-LCHlch(86.64, 52.46, 131.37°)
OKLaboklab(87.28% -0.095 0.0968)
OKLCHoklch(87.28% 0.136 134.5)
XYZxyz(51.5506, 69.2838, 35.4629)
Luminance0.6928 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE98C #C68CE9
analogous
#DEE98C #AFE98C #8CE997
triadic
#AFE98C #8CAFE9 #E98CAF
tetradic
#AFE98C #8CDEE9 #C68CE9 #E9978C
square
#AFE98C #8CDEE9 #C68CE9 #E9978C
split-complementary
#AFE98C #978CE9 #E98CDE
monochromatic
#68D228 #8BDF59 #AFE98C #D3F3BF #EDFAE5

Accessibility & contrast

On white

1.41
#AFE98C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.86
#AFE98C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE98C
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE98C#FFFFFF#000000##000000
##AFE98C1.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DC85
Deuteranopia (green-blind)
#E7D791
Tritanopia (blue-blind)
#AFE2D2
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #afe98c;
/* rgb */ color: rgb(175, 233, 140);
/* oklch */ color: oklch(87.3% 0.136 134.5);
Tailwind
colors: {
  custom: {
    50: '#c8f0af',
    500: '#afe98c',
    950: '#000000',
  },
}
SCSS
$custom: #afe98c;
$custom-light: #c8f0af;
$custom-dark: #000000;
JSON
{
  "hex": "#afe98c",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 140
  },
  "hsl": {
    "h": 97.419,
    "s": 67.883,
    "l": 73.137
  },
  "oklch": {
    "l": 0.87278,
    "c": 0.1356,
    "h": 134.5
  },
  "luminance": 0.69285
}

Semantic roles & 50–950 ramp

primary
#AFE98C
secondary
#9A56C3
accent
#16D08A
background
#FEFFFD
surface
#FAFEF7
border
#D3D6D0
text
#131610
muted
#838581

Preview Lab

Preview with #AFE98C

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

Preview Lab → · Contrast checker → · Palette generator →

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