#AFE98B#AFE98B

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

Color values

HEX#AFE98B
RGBrgb(175, 233, 139)
HSLhsl(97, 68%, 73%)
HSVhsv(97, 40%, 91%)
CMYKcmyk(24.9%, 0%, 40.3%, 8.6%)
CIE-LABlab(86.63, -34.81, 39.84)
CIE-LCHlch(86.63, 52.91, 131.14°)
OKLaboklab(87.26% -0.0954 0.0978)
OKLCHoklch(87.26% 0.137 134.3)
XYZxyz(51.4772, 69.2545, 35.0764)
Luminance0.6926 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE98B #C58BE9
analogous
#DEE98B #AFE98B #8BE996
triadic
#AFE98B #8BAFE9 #E98BAF
tetradic
#AFE98B #8BDEE9 #C58BE9 #E9968B
square
#AFE98B #8BDEE9 #C58BE9 #E9968B
split-complementary
#AFE98B #968BE9 #E98BDE
monochromatic
#69D228 #8CDF58 #AFE98B #D2F3BE #EDFAE5

Accessibility & contrast

On white

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

On black

14.85
#AFE98B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE98B
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE98B#FFFFFF#000000##000000
##AFE98B1.001.4114.8514.85
#FFFFFF1.411.0021.0021.00
#00000014.8521.001.001.00
##00000014.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afe98b;
/* rgb */ color: rgb(175, 233, 139);
/* oklch */ color: oklch(87.3% 0.137 134.3);
Tailwind
colors: {
  custom: {
    50: '#c8f0ae',
    500: '#afe98b',
    950: '#000000',
  },
}
SCSS
$custom: #afe98b;
$custom-light: #c8f0ae;
$custom-dark: #000000;
JSON
{
  "hex": "#afe98b",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 139
  },
  "hsl": {
    "h": 97.021,
    "s": 68.116,
    "l": 72.941
  },
  "oklch": {
    "l": 0.87261,
    "c": 0.13664,
    "h": 134.3
  },
  "luminance": 0.69256
}

Semantic roles & 50–950 ramp

primary
#AFE98B
secondary
#9955C3
accent
#15D089
background
#FEFFFD
surface
#FAFEF7
border
#D3D6D0
text
#131610
muted
#838581

Preview Lab

Preview with #AFE98B

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

Preview Lab → · Contrast checker → · Palette generator →

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