#AFD57F#AFD57F

#AFD57F is a very light, moderate yellow-green. Relative luminance 0.582; OKLCH L 82.6% C 0.120 H 128.2°. Best body text is #000000 at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#AFD57F
RGBrgb(175, 213, 127)
HSLhsl(87, 51%, 67%)
HSVhsv(87, 40%, 84%)
CMYKcmyk(17.8%, 0%, 40.4%, 16.5%)
CIE-LABlab(80.87, -26.97, 38.44)
CIE-LCHlch(80.87, 46.96, 125.05°)
OKLaboklab(82.57% -0.0741 0.0941)
OKLCHoklch(82.57% 0.12 128.2)
XYZxyz(45.3037, 58.2342, 28.9281)
Luminance0.5824 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD57F #A57FD5
analogous
#D5D07F #AFD57F #84D57F
triadic
#AFD57F #7FAFD5 #D57FAF
tetradic
#AFD57F #7FD5D0 #A57FD5 #D57F84
square
#AFD57F #7FD5D0 #A57FD5 #D57F84
split-complementary
#AFD57F #7F84D5 #D07FD5
monochromatic
#73A436 #92C651 #AFD57F #CCE4AD #E9F3DB

Accessibility & contrast

On white

1.66
#AFD57F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.65
#AFD57F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD57F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD57F#FFFFFF#000000##000000
##AFD57F1.001.6612.6512.65
#FFFFFF1.661.0021.0021.00
#00000012.6521.001.001.00
##00000012.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCA79
Deuteranopia (green-blind)
#D7C884
Tritanopia (blue-blind)
#B3CEC0
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #afd57f;
/* rgb */ color: rgb(175, 213, 127);
/* oklch */ color: oklch(82.6% 0.120 128.2);
Tailwind
colors: {
  custom: {
    50: '#c8e2a5',
    500: '#afd57f',
    950: '#000000',
  },
}
SCSS
$custom: #afd57f;
$custom-light: #c8e2a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afd57f",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 127
  },
  "hsl": {
    "h": 86.512,
    "s": 50.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.82565,
    "c": 0.11981,
    "h": 128.2
  },
  "luminance": 0.58235
}

Semantic roles & 50–950 ramp

primary
#AFD57F
secondary
#7750A8
accent
#28BE6A
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD57F

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

Preview Lab → · Contrast checker → · Palette generator →

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