#AFE256#AFE256

#AFE256 is a very light, vivid yellow-green. Relative luminance 0.642; OKLCH L 85.0% C 0.176 H 126.8°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#AFE256
RGBrgb(175, 226, 86)
HSLhsl(82, 71%, 61%)
HSVhsv(82, 62%, 89%)
CMYKcmyk(22.6%, 0%, 61.9%, 11.4%)
CIE-LABlab(84.06, -37.15, 61.27)
CIE-LCHlch(84.06, 71.65, 121.23°)
OKLaboklab(84.99% -0.1056 0.1409)
OKLCHoklch(84.99% 0.176 126.8)
XYZxyz(46.5553, 64.1778, 18.7371)
Luminance0.6418 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE256 #8956E2
analogous
#E2CF56 #AFE256 #69E256
triadic
#AFE256 #56AFE2 #E256AF
tetradic
#AFE256 #56E2CF #8956E2 #E25669
square
#AFE256 #56E2CF #8956E2 #E25669
split-complementary
#AFE256 #5669E2 #CF56E2
monochromatic
#71A21C #95D625 #AFE256 #C8EB8A #E0F4BE

Accessibility & contrast

On white

1.52
#AFE256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.84
#AFE256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE256
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE256#FFFFFF#000000##000000
##AFE2561.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD445
Deuteranopia (green-blind)
#E6D160
Tritanopia (blue-blind)
#B5D8C5
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe256;
/* rgb */ color: rgb(175, 226, 86);
/* oklch */ color: oklch(85.0% 0.176 126.8);
Tailwind
colors: {
  custom: {
    50: '#caeb8b',
    500: '#afe256',
    950: '#000000',
  },
}
SCSS
$custom: #afe256;
$custom-light: #caeb8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afe256",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 86
  },
  "hsl": {
    "h": 81.857,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.84988,
    "c": 0.1761,
    "h": 126.8
  },
  "luminance": 0.64179
}

Semantic roles & 50–950 ramp

primary
#AFE256
secondary
#5F38A5
accent
#13D359
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFE256

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

Preview Lab → · Contrast checker → · Palette generator →

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