#AFE874#AFE874

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

Color values

HEX#AFE874
RGBrgb(175, 232, 116)
HSLhsl(89, 72%, 68%)
HSVhsv(89, 50%, 91%)
CMYKcmyk(24.6%, 0%, 50%, 9%)
CIE-LABlab(86.05, -37.09, 50.23)
CIE-LCHlch(86.05, 62.44, 126.44°)
OKLaboklab(86.7% -0.103 0.12)
OKLCHoklch(86.7% 0.158 130.7)
XYZxyz(49.6876, 68.0870, 27.0439)
Luminance0.6809 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE874 #AD74E8
analogous
#E8E774 #AFE874 #75E874
triadic
#AFE874 #74AFE8 #E874AF
tetradic
#AFE874 #74E8E7 #AD74E8 #E87475
square
#AFE874 #74E8E7 #AD74E8 #E87475
split-complementary
#AFE874 #7475E8 #E774E8
monochromatic
#72C220 #91DF3F #AFE874 #CDF1A9 #EBF9DD

Accessibility & contrast

On white

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

On black

14.62
#AFE874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE874
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE874#FFFFFF#000000##000000
##AFE8741.001.4414.6214.62
#FFFFFF1.441.0021.0021.00
#00000014.6221.001.001.00
##00000014.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afe874;
/* rgb */ color: rgb(175, 232, 116);
/* oklch */ color: oklch(86.7% 0.158 130.7);
Tailwind
colors: {
  custom: {
    50: '#c9ef9e',
    500: '#afe874',
    950: '#000000',
  },
}
SCSS
$custom: #afe874;
$custom-light: #c9ef9e;
$custom-dark: #000000;
JSON
{
  "hex": "#afe874",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 116
  },
  "hsl": {
    "h": 89.483,
    "s": 71.605,
    "l": 68.235
  },
  "oklch": {
    "l": 0.86696,
    "c": 0.15812,
    "h": 130.7
  },
  "luminance": 0.68088
}

Semantic roles & 50–950 ramp

primary
#AFE874
secondary
#7F40C0
accent
#12D471
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE874

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

Preview Lab → · Contrast checker → · Palette generator →

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