#AFD371#AFD371

#AFD371 is a light, vivid yellow-green. Relative luminance 0.569; OKLCH L 81.9% C 0.132 H 125.7°. Best body text is #000000 at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#AFD371
RGBrgb(175, 211, 113)
HSLhsl(82, 53%, 64%)
HSVhsv(82, 46%, 83%)
CMYKcmyk(17.1%, 0%, 46.4%, 17.3%)
CIE-LABlab(80.12, -27.66, 44.43)
CIE-LCHlch(80.12, 52.34, 121.90°)
OKLaboklab(81.9% -0.0769 0.1069)
OKLCHoklch(81.9% 0.132 125.7)
XYZxyz(43.9539, 56.8943, 24.2856)
Luminance0.5689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD371 #9571D3
analogous
#D3C671 #AFD371 #7ED371
triadic
#AFD371 #71AFD3 #D371AF
tetradic
#AFD371 #71D3C6 #9571D3 #D3717E
square
#AFD371 #71D3C6 #9571D3 #D3717E
split-complementary
#AFD371 #717ED3 #C671D3
monochromatic
#739A30 #95C542 #AFD371 #C9E1A0 #E4F0CE

Accessibility & contrast

On white

1.70
#AFD371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.38
#AFD371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD371
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD371#FFFFFF#000000##000000
##AFD3711.001.7012.3812.38
#FFFFFF1.701.0021.0021.00
#00000012.3821.001.001.00
##00000012.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC869
Deuteranopia (green-blind)
#D7C677
Tritanopia (blue-blind)
#B4CBBC
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd371;
/* rgb */ color: rgb(175, 211, 113);
/* oklch */ color: oklch(81.9% 0.132 125.7);
Tailwind
colors: {
  custom: {
    50: '#c8e09c',
    500: '#afd371',
    950: '#000000',
  },
}
SCSS
$custom: #afd371;
$custom-light: #c8e09c;
$custom-dark: #000000;
JSON
{
  "hex": "#afd371",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 113
  },
  "hsl": {
    "h": 82.041,
    "s": 52.688,
    "l": 63.529
  },
  "oklch": {
    "l": 0.81901,
    "c": 0.13173,
    "h": 125.7
  },
  "luminance": 0.56895
}

Semantic roles & 50–950 ramp

primary
#AFD371
secondary
#69499F
accent
#25C05E
background
#FEFEFC
surface
#FAFCF5
border
#D3D5CF
text
#13150E
muted
#83847F

Preview Lab

Preview with #AFD371

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

Preview Lab → · Contrast checker → · Palette generator →

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