#AFE97C#AFE97C

#AFE97C is a very light, vivid yellow-green. Relative luminance 0.688; OKLCH L 87.0% C 0.152 H 131.8°. Best body text is #000000 at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#AFE97C
RGBrgb(175, 233, 124)
HSLhsl(92, 71%, 70%)
HSVhsv(92, 47%, 91%)
CMYKcmyk(24.9%, 0%, 46.8%, 8.6%)
CIE-LABlab(86.43, -36.65, 46.90)
CIE-LCHlch(86.43, 59.52, 128.01°)
OKLaboklab(87.03% -0.1013 0.1131)
OKLCHoklch(87.03% 0.152 131.8)
XYZxyz(50.4554, 68.8457, 29.6951)
Luminance0.6885 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE97C #B67CE9
analogous
#E5E97C #AFE97C #7CE980
triadic
#AFE97C #7CAFE9 #E97CAF
tetradic
#AFE97C #7CE5E9 #B67CE9 #E9807C
square
#AFE97C #7CE5E9 #B67CE9 #E9807C
split-complementary
#AFE97C #807CE9 #E97CE5
monochromatic
#70C922 #8FE048 #AFE97C #CFF2B0 #EFFBE5

Accessibility & contrast

On white

1.42
#AFE97C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.77
#AFE97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE97C
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE97C#FFFFFF#000000##000000
##AFE97C1.001.4214.7714.77
#FFFFFF1.421.0021.0021.00
#00000014.7721.001.001.00
##00000014.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DB73
Deuteranopia (green-blind)
#E9D783
Tritanopia (blue-blind)
#B1E1CF
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #afe97c;
/* rgb */ color: rgb(175, 233, 124);
/* oklch */ color: oklch(87.0% 0.152 131.8);
Tailwind
colors: {
  custom: {
    50: '#c9f0a4',
    500: '#afe97c',
    950: '#000000',
  },
}
SCSS
$custom: #afe97c;
$custom-light: #c9f0a4;
$custom-dark: #000000;
JSON
{
  "hex": "#afe97c",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 124
  },
  "hsl": {
    "h": 91.927,
    "s": 71.242,
    "l": 70
  },
  "oklch": {
    "l": 0.87032,
    "c": 0.1518,
    "h": 131.8
  },
  "luminance": 0.68847
}

Semantic roles & 50–950 ramp

primary
#AFE97C
secondary
#8948C2
accent
#12D379
background
#FEFFFC
surface
#FAFEF6
border
#D3D6D0
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE97C

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

Preview Lab → · Contrast checker → · Palette generator →

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