#AFFC81#AFFC81

#AFFC81 is a very light, vivid yellow-green. Relative luminance 0.803; OKLCH L 91.4% C 0.174 H 134.9°. Best body text is #000000 at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#AFFC81
RGBrgb(175, 252, 129)
HSLhsl(98, 95%, 75%)
HSVhsv(98, 49%, 99%)
CMYKcmyk(30.6%, 0%, 48.8%, 1.2%)
CIE-LABlab(91.83, -44.48, 51.17)
CIE-LCHlch(91.83, 67.80, 131.00°)
OKLaboklab(91.43% -0.1227 0.1229)
OKLCHoklch(91.43% 0.174 134.9)
XYZxyz(56.4508, 80.3177, 33.2932)
Luminance0.8032 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFFC81 #CE81FC
analogous
#EDFC81 #AFFC81 #81FC91
triadic
#AFFC81 #81AFFC #FC81AF
tetradic
#AFFC81 #81EDFC #CE81FC #FC9181
square
#AFFC81 #81EDFC #CE81FC #FC9181
split-complementary
#AFFC81 #9181FC #FC81ED
monochromatic
#63F909 #89FB45 #AFFC81 #D5FDBD #ECFEE1

Accessibility & contrast

On white

1.23
#AFFC81 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.06
#AFFC81 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFFC81
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFFC81#FFFFFF#000000##000000
##AFFC811.001.2317.0617.06
#FFFFFF1.231.0021.0021.00
#00000017.0621.001.001.00
##00000017.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC76
Deuteranopia (green-blind)
#F9E589
Tritanopia (blue-blind)
#AEF4E0
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #affc81;
/* rgb */ color: rgb(175, 252, 129);
/* oklch */ color: oklch(91.4% 0.174 134.9);
Tailwind
colors: {
  custom: {
    50: '#cafea8',
    500: '#affc81',
    950: '#000000',
  },
}
SCSS
$custom: #affc81;
$custom-light: #cafea8;
$custom-dark: #000000;
JSON
{
  "hex": "#affc81",
  "rgb": {
    "r": 175,
    "g": 252,
    "b": 129
  },
  "hsl": {
    "h": 97.561,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.91425,
    "c": 0.17362,
    "h": 134.9
  },
  "luminance": 0.8032
}

Semantic roles & 50–950 ramp

primary
#AFFC81
secondary
#A347DA
accent
#00E690
background
#FEFFFD
surface
#FBFFF7
border
#D4D7D0
text
#131810
muted
#838681

Preview Lab

Preview with #AFFC81

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

Preview Lab → · Contrast checker → · Palette generator →

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