#AFE97B#AFE97B

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

Color values

HEX#AFE97B
RGBrgb(175, 233, 123)
HSLhsl(92, 71%, 70%)
HSVhsv(92, 47%, 91%)
CMYKcmyk(24.9%, 0%, 47.2%, 8.6%)
CIE-LABlab(86.42, -36.76, 47.36)
CIE-LCHlch(86.42, 59.96, 127.82°)
OKLaboklab(87.02% -0.1017 0.1141)
OKLCHoklch(87.02% 0.153 131.7)
XYZxyz(50.3925, 68.8206, 29.3638)
Luminance0.6882 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE97B #B57BE9
analogous
#E6E97B #AFE97B #7BE97E
triadic
#AFE97B #7BAFE9 #E97BAF
tetradic
#AFE97B #7BE6E9 #B57BE9 #E97E7B
square
#AFE97B #7BE6E9 #B57BE9 #E97E7B
split-complementary
#AFE97B #7E7BE9 #E97BE6
monochromatic
#70C821 #8FE047 #AFE97B #CFF2AF #EFFAE4

Accessibility & contrast

On white

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

On black

14.76
#AFE97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE97B
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE97B#FFFFFF#000000##000000
##AFE97B1.001.4214.7614.76
#FFFFFF1.421.0021.0021.00
#00000014.7621.001.001.00
##00000014.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afe97b;
/* rgb */ color: rgb(175, 233, 123);
/* oklch */ color: oklch(87.0% 0.153 131.7);
Tailwind
colors: {
  custom: {
    50: '#c9f0a3',
    500: '#afe97b',
    950: '#000000',
  },
}
SCSS
$custom: #afe97b;
$custom-light: #c9f0a3;
$custom-dark: #000000;
JSON
{
  "hex": "#afe97b",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 123
  },
  "hsl": {
    "h": 91.636,
    "s": 71.429,
    "l": 69.804
  },
  "oklch": {
    "l": 0.87018,
    "c": 0.15278,
    "h": 131.7
  },
  "luminance": 0.68822
}

Semantic roles & 50–950 ramp

primary
#AFE97B
secondary
#8747C2
accent
#12D378
background
#FEFFFC
surface
#FAFEF6
border
#D3D6D0
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE97B

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

Preview Lab → · Contrast checker → · Palette generator →

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