#AFE971#AFE971

#AFE971 is a very light, vivid yellow-green. Relative luminance 0.686; OKLCH L 86.9% C 0.162 H 130.5°. Best body text is #000000 at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#AFE971
RGBrgb(175, 233, 113)
HSLhsl(89, 73%, 68%)
HSVhsv(89, 52%, 91%)
CMYKcmyk(24.9%, 0%, 51.5%, 8.6%)
CIE-LABlab(86.30, -37.85, 51.92)
CIE-LCHlch(86.30, 64.26, 126.09°)
OKLaboklab(86.88% -0.1054 0.1235)
OKLCHoklch(86.88% 0.162 130.5)
XYZxyz(49.7982, 68.5829, 26.2337)
Luminance0.6858 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE971 #AB71E9
analogous
#E9E771 #AFE971 #73E971
triadic
#AFE971 #71AFE9 #E971AF
tetradic
#AFE971 #71E9E7 #AB71E9 #E97173
square
#AFE971 #71E9E7 #AB71E9 #E97173
split-complementary
#AFE971 #7173E9 #E771E9
monochromatic
#73C21E #91E13C #AFE971 #CDF1A6 #EBF9DB

Accessibility & contrast

On white

1.43
#AFE971 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.72
#AFE971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE971
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE971#FFFFFF#000000##000000
##AFE9711.001.4314.7214.72
#FFFFFF1.431.0021.0021.00
#00000014.7221.001.001.00
##00000014.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DB66
Deuteranopia (green-blind)
#EAD679
Tritanopia (blue-blind)
#B2E1CE
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #afe971;
/* rgb */ color: rgb(175, 233, 113);
/* oklch */ color: oklch(86.9% 0.162 130.5);
Tailwind
colors: {
  custom: {
    50: '#c9f09d',
    500: '#afe971',
    950: '#000000',
  },
}
SCSS
$custom: #afe971;
$custom-light: #c9f09d;
$custom-dark: #000000;
JSON
{
  "hex": "#afe971",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 113
  },
  "hsl": {
    "h": 89,
    "s": 73.171,
    "l": 67.843
  },
  "oklch": {
    "l": 0.86884,
    "c": 0.1623,
    "h": 130.5
  },
  "luminance": 0.68584
}

Semantic roles & 50–950 ramp

primary
#AFE971
secondary
#7D3EC0
accent
#10D56F
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160E
muted
#83857F

Preview Lab

Preview with #AFE971

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

Preview Lab → · Contrast checker → · Palette generator →

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