#AFE873#AFE873

#AFE873 is a very light, vivid yellow-green. Relative luminance 0.681; OKLCH L 86.7% C 0.159 H 130.5°. Best body text is #000000 at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#AFE873
RGBrgb(175, 232, 115)
HSLhsl(89, 72%, 68%)
HSVhsv(89, 50%, 91%)
CMYKcmyk(24.6%, 0%, 50.4%, 9%)
CIE-LABlab(86.04, -37.19, 50.68)
CIE-LCHlch(86.04, 62.87, 126.27°)
OKLaboklab(86.68% -0.1034 0.1209)
OKLCHoklch(86.68% 0.159 130.5)
XYZxyz(49.6297, 68.0638, 26.7392)
Luminance0.6806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE873 #AC73E8
analogous
#E8E773 #AFE873 #74E873
triadic
#AFE873 #73AFE8 #E873AF
tetradic
#AFE873 #73E8E7 #AC73E8 #E87374
square
#AFE873 #73E8E7 #AC73E8 #E87374
split-complementary
#AFE873 #7374E8 #E773E8
monochromatic
#72C120 #91DF3E #AFE873 #CDF1A8 #EBF9DC

Accessibility & contrast

On white

1.44
#AFE873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.61
#AFE873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE873
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE873#FFFFFF#000000##000000
##AFE8731.001.4414.6114.61
#FFFFFF1.441.0021.0021.00
#00000014.6121.001.001.00
##00000014.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA69
Deuteranopia (green-blind)
#E9D67A
Tritanopia (blue-blind)
#B2E0CD
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe873;
/* rgb */ color: rgb(175, 232, 115);
/* oklch */ color: oklch(86.7% 0.159 130.5);
Tailwind
colors: {
  custom: {
    50: '#c9ef9e',
    500: '#afe873',
    950: '#000000',
  },
}
SCSS
$custom: #afe873;
$custom-light: #c9ef9e;
$custom-dark: #000000;
JSON
{
  "hex": "#afe873",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 115
  },
  "hsl": {
    "h": 89.231,
    "s": 71.779,
    "l": 68.039
  },
  "oklch": {
    "l": 0.86682,
    "c": 0.15906,
    "h": 130.5
  },
  "luminance": 0.68065
}

Semantic roles & 50–950 ramp

primary
#AFE873
secondary
#7E40C0
accent
#12D470
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE873

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

Preview Lab → · Contrast checker → · Palette generator →

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