#AFE162#AFE162

#AFE162 is a very light, vivid yellow-green. Relative luminance 0.638; OKLCH L 84.9% C 0.165 H 127.5°. Best body text is #000000 at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#AFE162
RGBrgb(175, 225, 98)
HSLhsl(84, 68%, 63%)
HSVhsv(84, 56%, 88%)
CMYKcmyk(22.2%, 0%, 56.4%, 11.8%)
CIE-LABlab(83.89, -35.69, 55.91)
CIE-LCHlch(83.89, 66.33, 122.55°)
OKLaboklab(84.88% -0.1005 0.1308)
OKLCHoklch(84.88% 0.165 127.5)
XYZxyz(46.8089, 63.8454, 21.4102)
Luminance0.6385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE162 #9462E1
analogous
#E1D362 #AFE162 #6FE162
triadic
#AFE162 #62AFE1 #E162AF
tetradic
#AFE162 #62E1D3 #9462E1 #E1626F
square
#AFE162 #62E1D3 #9462E1 #E1626F
split-complementary
#AFE162 #626FE1 #D362E1
monochromatic
#73A820 #95D72F #AFE162 #C9EB95 #E3F5C9

Accessibility & contrast

On white

1.53
#AFE162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.77
#AFE162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE162
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE162#FFFFFF#000000##000000
##AFE1621.001.5313.7713.77
#FFFFFF1.531.0021.0021.00
#00000013.7721.001.001.00
##00000013.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD355
Deuteranopia (green-blind)
#E4D06B
Tritanopia (blue-blind)
#B4D8C5
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afe162;
/* rgb */ color: rgb(175, 225, 98);
/* oklch */ color: oklch(84.9% 0.165 127.5);
Tailwind
colors: {
  custom: {
    50: '#caea92',
    500: '#afe162',
    950: '#000000',
  },
}
SCSS
$custom: #afe162;
$custom-light: #caea92;
$custom-dark: #000000;
JSON
{
  "hex": "#afe162",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 98
  },
  "hsl": {
    "h": 83.622,
    "s": 67.914,
    "l": 63.333
  },
  "oklch": {
    "l": 0.84883,
    "c": 0.16498,
    "h": 127.5
  },
  "luminance": 0.63846
}

Semantic roles & 50–950 ramp

primary
#AFE162
secondary
#683DAB
accent
#16D05F
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#13160D
muted
#83847F

Preview Lab

Preview with #AFE162

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

Preview Lab → · Contrast checker → · Palette generator →

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