#AFD581#AFD581

#AFD581 is a very light, moderate yellow-green. Relative luminance 0.583; OKLCH L 82.6% C 0.118 H 128.6°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#AFD581
RGBrgb(175, 213, 129)
HSLhsl(87, 50%, 67%)
HSVhsv(87, 39%, 84%)
CMYKcmyk(17.8%, 0%, 39.4%, 16.5%)
CIE-LABlab(80.90, -26.71, 37.47)
CIE-LCHlch(80.90, 46.02, 125.48°)
OKLaboklab(82.6% -0.0733 0.092)
OKLCHoklch(82.6% 0.118 128.6)
XYZxyz(45.4353, 58.2868, 29.6214)
Luminance0.5829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD581 #A781D5
analogous
#D5D181 #AFD581 #85D581
triadic
#AFD581 #81AFD5 #D581AF
tetradic
#AFD581 #81D5D1 #A781D5 #D58185
square
#AFD581 #81D5D1 #A781D5 #D58185
split-complementary
#AFD581 #8185D5 #D181D5
monochromatic
#73A537 #92C653 #AFD581 #CCE4AF #E9F4DD

Accessibility & contrast

On white

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

On black

12.66
#AFD581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD581
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD581#FFFFFF#000000##000000
##AFD5811.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCB7B
Deuteranopia (green-blind)
#D7C885
Tritanopia (blue-blind)
#B2CEC0
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #afd581;
/* rgb */ color: rgb(175, 213, 129);
/* oklch */ color: oklch(82.6% 0.118 128.6);
Tailwind
colors: {
  custom: {
    50: '#c8e2a6',
    500: '#afd581',
    950: '#000000',
  },
}
SCSS
$custom: #afd581;
$custom-light: #c8e2a6;
$custom-dark: #000000;
JSON
{
  "hex": "#afd581",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 129
  },
  "hsl": {
    "h": 87.143,
    "s": 50,
    "l": 67.059
  },
  "oklch": {
    "l": 0.82598,
    "c": 0.11763,
    "h": 128.6
  },
  "luminance": 0.58287
}

Semantic roles & 50–950 ramp

primary
#AFD581
secondary
#7951A9
accent
#28BD6C
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD581

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

Preview Lab → · Contrast checker → · Palette generator →

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