#AFD781#AFD781

#AFD781 is a very light, vivid yellow-green. Relative luminance 0.593; OKLCH L 83.0% C 0.121 H 129.1°. Best body text is #000000 at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#AFD781
RGBrgb(175, 215, 129)
HSLhsl(88, 52%, 67%)
HSVhsv(88, 40%, 84%)
CMYKcmyk(18.6%, 0%, 40%, 15.7%)
CIE-LABlab(81.46, -27.67, 38.19)
CIE-LCHlch(81.46, 47.16, 125.93°)
OKLaboklab(83.05% -0.076 0.0936)
OKLCHoklch(83.05% 0.121 129.1)
XYZxyz(45.9415, 59.2991, 29.7901)
Luminance0.5930 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD781 #A981D7
analogous
#D7D481 #AFD781 #84D781
triadic
#AFD781 #81AFD7 #D781AF
tetradic
#AFD781 #81D7D4 #A981D7 #D78184
square
#AFD781 #81D7D4 #A981D7 #D78184
split-complementary
#AFD781 #8184D7 #D481D7
monochromatic
#73A835 #92C853 #AFD781 #CCE6AF #EAF4DE

Accessibility & contrast

On white

1.63
#AFD781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.86
#AFD781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD781
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD781#FFFFFF#000000##000000
##AFD7811.001.6312.8612.86
#FFFFFF1.631.0021.0021.00
#00000012.8621.001.001.00
##00000012.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFCC7B
Deuteranopia (green-blind)
#D9CA86
Tritanopia (blue-blind)
#B2D0C2
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd781;
/* rgb */ color: rgb(175, 215, 129);
/* oklch */ color: oklch(83.0% 0.121 129.1);
Tailwind
colors: {
  custom: {
    50: '#c8e3a6',
    500: '#afd781',
    950: '#000000',
  },
}
SCSS
$custom: #afd781;
$custom-light: #c8e3a6;
$custom-dark: #000000;
JSON
{
  "hex": "#afd781",
  "rgb": {
    "r": 175,
    "g": 215,
    "b": 129
  },
  "hsl": {
    "h": 87.907,
    "s": 51.807,
    "l": 67.451
  },
  "oklch": {
    "l": 0.83046,
    "c": 0.12059,
    "h": 129.1
  },
  "luminance": 0.593
}

Semantic roles & 50–950 ramp

primary
#AFD781
secondary
#7B50AC
accent
#26BF6D
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD781

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

Preview Lab → · Contrast checker → · Palette generator →

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