#AFD981#AFD981

#AFD981 is a very light, vivid yellow-green. Relative luminance 0.603; OKLCH L 83.5% C 0.124 H 129.5°. Best body text is #000000 at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#AFD981
RGBrgb(175, 217, 129)
HSLhsl(89, 54%, 68%)
HSVhsv(89, 41%, 85%)
CMYKcmyk(19.4%, 0%, 40.6%, 14.9%)
CIE-LABlab(82.01, -28.62, 38.90)
CIE-LCHlch(82.01, 48.30, 126.34°)
OKLaboklab(83.49% -0.0787 0.0953)
OKLCHoklch(83.49% 0.124 129.5)
XYZxyz(46.4539, 60.3239, 29.9609)
Luminance0.6032 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD981 #AB81D9
analogous
#D9D781 #AFD981 #83D981
triadic
#AFD981 #81AFD9 #D981AF
tetradic
#AFD981 #81D9D7 #AB81D9 #D98183
square
#AFD981 #81D9D7 #AB81D9 #D98183
split-complementary
#AFD981 #8183D9 #D781D9
monochromatic
#73AC34 #91CB52 #AFD981 #CDE7B0 #EBF5DF

Accessibility & contrast

On white

1.61
#AFD981 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.07
#AFD981 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD981
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD981#FFFFFF#000000##000000
##AFD9811.001.6113.0713.07
#FFFFFF1.611.0021.0021.00
#00000013.0721.001.001.00
##00000013.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CE7A
Deuteranopia (green-blind)
#DACB86
Tritanopia (blue-blind)
#B2D2C3
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #afd981;
/* rgb */ color: rgb(175, 217, 129);
/* oklch */ color: oklch(83.5% 0.124 129.5);
Tailwind
colors: {
  custom: {
    50: '#c8e5a7',
    500: '#afd981',
    950: '#000000',
  },
}
SCSS
$custom: #afd981;
$custom-light: #c8e5a7;
$custom-dark: #000000;
JSON
{
  "hex": "#afd981",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 129
  },
  "hsl": {
    "h": 88.636,
    "s": 53.659,
    "l": 67.843
  },
  "oklch": {
    "l": 0.83495,
    "c": 0.12354,
    "h": 129.5
  },
  "luminance": 0.60325
}

Semantic roles & 50–950 ramp

primary
#AFD981
secondary
#7D4FAF
accent
#24C16F
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD981

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

Preview Lab → · Contrast checker → · Palette generator →

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