#AFE98F#AFE98F

#AFE98F is a very light, vivid yellow-green. Relative luminance 0.694; OKLCH L 87.3% C 0.132 H 135.1°. Best body text is #000000 at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#AFE98F
RGBrgb(175, 233, 143)
HSLhsl(99, 67%, 74%)
HSVhsv(99, 39%, 91%)
CMYKcmyk(24.9%, 0%, 38.6%, 8.6%)
CIE-LABlab(86.69, -34.28, 37.93)
CIE-LCHlch(86.69, 51.13, 132.10°)
OKLaboklab(87.33% -0.0938 0.0935)
OKLCHoklch(87.33% 0.132 135.1)
XYZxyz(51.7748, 69.3735, 36.6438)
Luminance0.6937 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE98F #C98FE9
analogous
#DCE98F #AFE98F #8FE99C
triadic
#AFE98F #8FAFE9 #E98FAF
tetradic
#AFE98F #8FDCE9 #C98FE9 #E99C8F
square
#AFE98F #8FDCE9 #C98FE9 #E99C8F
split-complementary
#AFE98F #9C8FE9 #E98FDC
monochromatic
#66D42A #8ADF5C #AFE98F #D4F3C2 #EDFAE5

Accessibility & contrast

On white

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

On black

14.88
#AFE98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE98F
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE98F#FFFFFF#000000##000000
##AFE98F1.001.4114.8814.88
#FFFFFF1.411.0021.0021.00
#00000014.8821.001.001.00
##00000014.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFDC88
Deuteranopia (green-blind)
#E7D794
Tritanopia (blue-blind)
#AFE3D3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #afe98f;
/* rgb */ color: rgb(175, 233, 143);
/* oklch */ color: oklch(87.3% 0.132 135.1);
Tailwind
colors: {
  custom: {
    50: '#c8f0b1',
    500: '#afe98f',
    950: '#000000',
  },
}
SCSS
$custom: #afe98f;
$custom-light: #c8f0b1;
$custom-dark: #000000;
JSON
{
  "hex": "#afe98f",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 143
  },
  "hsl": {
    "h": 98.667,
    "s": 67.164,
    "l": 73.725
  },
  "oklch": {
    "l": 0.87328,
    "c": 0.13247,
    "h": 135.1
  },
  "luminance": 0.69375
}

Semantic roles & 50–950 ramp

primary
#AFE98F
secondary
#9D59C3
accent
#16CF8D
background
#FDFFFD
surface
#F9FEF7
border
#D2D6D0
text
#131611
muted
#828581

Preview Lab

Preview with #AFE98F

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

Preview Lab → · Contrast checker → · Palette generator →

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