#AFD381#AFD381

#AFD381 is a very light, moderate yellow-green. Relative luminance 0.573; OKLCH L 82.2% C 0.115 H 128.0°. Best body text is #000000 at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#AFD381
RGBrgb(175, 211, 129)
HSLhsl(86, 48%, 67%)
HSVhsv(86, 39%, 83%)
CMYKcmyk(17.1%, 0%, 38.9%, 17.3%)
CIE-LABlab(80.34, -25.75, 36.76)
CIE-LCHlch(80.34, 44.88, 125.01°)
OKLaboklab(82.15% -0.0706 0.0903)
OKLCHoklch(82.15% 0.115 128)
XYZxyz(44.9354, 57.2869, 29.4547)
Luminance0.5729 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD381 #A581D3
analogous
#D3CE81 #AFD381 #86D381
triadic
#AFD381 #81AFD3 #D381AF
tetradic
#AFD381 #81D3CE #A581D3 #D38186
square
#AFD381 #81D3CE #A581D3 #D38186
split-complementary
#AFD381 #8186D3 #CE81D3
monochromatic
#73A138 #92C354 #AFD381 #CCE3AE #E9F3DC

Accessibility & contrast

On white

1.69
#AFD381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.46
#AFD381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD381
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD381#FFFFFF#000000##000000
##AFD3811.001.6912.4612.46
#FFFFFF1.691.0021.0021.00
#00000012.4621.001.001.00
##00000012.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC97B
Deuteranopia (green-blind)
#D5C785
Tritanopia (blue-blind)
#B3CCBF
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd381;
/* rgb */ color: rgb(175, 211, 129);
/* oklch */ color: oklch(82.2% 0.115 128.0);
Tailwind
colors: {
  custom: {
    50: '#c8e0a6',
    500: '#afd381',
    950: '#000000',
  },
}
SCSS
$custom: #afd381;
$custom-light: #c8e0a6;
$custom-dark: #000000;
JSON
{
  "hex": "#afd381",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 129
  },
  "hsl": {
    "h": 86.341,
    "s": 48.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.8215,
    "c": 0.11467,
    "h": 128
  },
  "luminance": 0.57287
}

Semantic roles & 50–950 ramp

primary
#AFD381
secondary
#7752A6
accent
#2ABC6A
background
#FDFEFC
surface
#F9FCF6
border
#D2D5D0
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD381

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

Preview Lab → · Contrast checker → · Palette generator →

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