#AFD187#AFD187

#AFD187 is a light, moderate yellow-green. Relative luminance 0.565; OKLCH L 81.8% C 0.105 H 128.6°. Best body text is #000000 at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#AFD187
RGBrgb(175, 209, 135)
HSLhsl(88, 45%, 67%)
HSVhsv(88, 35%, 82%)
CMYKcmyk(16.3%, 0%, 35.4%, 18%)
CIE-LABlab(79.88, -23.99, 33.10)
CIE-LCHlch(79.88, 40.88, 125.94°)
OKLaboklab(81.81% -0.0654 0.0821)
OKLCHoklch(81.81% 0.105 128.6)
XYZxyz(44.8522, 56.4636, 31.4525)
Luminance0.5646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD187 #A987D1
analogous
#D1CE87 #AFD187 #8AD187
triadic
#AFD187 #87AFD1 #D187AF
tetradic
#AFD187 #87D1CE #A987D1 #D1878A
square
#AFD187 #87D1CE #A987D1 #D1878A
split-complementary
#AFD187 #878AD1 #CE87D1
monochromatic
#73A03D #92C05B #AFD187 #CCE2B3 #EAF3DF

Accessibility & contrast

On white

1.71
#AFD187 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.29
#AFD187 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD187
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD187#FFFFFF#000000##000000
##AFD1871.001.7112.2912.29
#FFFFFF1.711.0021.0021.00
#00000012.2921.001.001.00
##00000012.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C882
Deuteranopia (green-blind)
#D3C58B
Tritanopia (blue-blind)
#B2CBBE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd187;
/* rgb */ color: rgb(175, 209, 135);
/* oklch */ color: oklch(81.8% 0.105 128.6);
Tailwind
colors: {
  custom: {
    50: '#c8dfaa',
    500: '#afd187',
    950: '#000000',
  },
}
SCSS
$custom: #afd187;
$custom-light: #c8dfaa;
$custom-dark: #000000;
JSON
{
  "hex": "#afd187",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 135
  },
  "hsl": {
    "h": 87.568,
    "s": 44.578,
    "l": 67.451
  },
  "oklch": {
    "l": 0.81808,
    "c": 0.10496,
    "h": 128.6
  },
  "luminance": 0.56464
}

Semantic roles & 50–950 ramp

primary
#AFD187
secondary
#7B57A5
accent
#2EB86D
background
#FDFEFD
surface
#F9FCF7
border
#D2D5D0
text
#131510
muted
#828481

Preview Lab

Preview with #AFD187

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

Preview Lab → · Contrast checker → · Palette generator →

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