#AFE862#AFE862

#AFE862 is a very light, vivid yellow-green. Relative luminance 0.677; OKLCH L 86.5% C 0.174 H 128.9°. Best body text is #000000 at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#AFE862
RGBrgb(175, 232, 98)
HSLhsl(86, 74%, 65%)
HSVhsv(86, 58%, 91%)
CMYKcmyk(24.6%, 0%, 57.8%, 9%)
CIE-LABlab(85.86, -38.84, 58.17)
CIE-LCHlch(85.86, 69.94, 123.74°)
OKLaboklab(86.48% -0.1093 0.1356)
OKLCHoklch(86.48% 0.174 128.9)
XYZxyz(48.7401, 67.7080, 22.0539)
Luminance0.6771 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE862 #9B62E8
analogous
#E8DE62 #AFE862 #6CE862
triadic
#AFE862 #62AFE8 #E862AF
tetradic
#AFE862 #62E8DE #9B62E8 #E8626C
square
#AFE862 #62E8DE #9B62E8 #E8626C
split-complementary
#AFE862 #626CE8 #DE62E8
monochromatic
#73B51B #94E02D #AFE862 #CAF097 #E5F8CD

Accessibility & contrast

On white

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

On black

14.54
#AFE862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE862
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE862#FFFFFF#000000##000000
##AFE8621.001.4414.5414.54
#FFFFFF1.441.0021.0021.00
#00000014.5421.001.001.00
##00000014.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D954
Deuteranopia (green-blind)
#EAD56B
Tritanopia (blue-blind)
#B4DFCB
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe862;
/* rgb */ color: rgb(175, 232, 98);
/* oklch */ color: oklch(86.5% 0.174 128.9);
Tailwind
colors: {
  custom: {
    50: '#caef93',
    500: '#afe862',
    950: '#000000',
  },
}
SCSS
$custom: #afe862;
$custom-light: #caef93;
$custom-dark: #000000;
JSON
{
  "hex": "#afe862",
  "rgb": {
    "r": 175,
    "g": 232,
    "b": 98
  },
  "hsl": {
    "h": 85.522,
    "s": 74.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.86481,
    "c": 0.17418,
    "h": 128.9
  },
  "luminance": 0.67709
}

Semantic roles & 50–950 ramp

primary
#AFE862
secondary
#6E39B5
accent
#0FD764
background
#FEFFFC
surface
#FBFEF4
border
#D4D6CE
text
#14160D
muted
#83857F

Preview Lab

Preview with #AFE862

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

Preview Lab → · Contrast checker → · Palette generator →

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