#AFE151#AFE151

#AFE151 is a very light, vivid yellow-green. Relative luminance 0.636; OKLCH L 84.7% C 0.179 H 126.3°. Best body text is #000000 at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#AFE151
RGBrgb(175, 225, 81)
HSLhsl(81, 71%, 60%)
HSVhsv(81, 64%, 88%)
CMYKcmyk(22.2%, 0%, 64%, 11.8%)
CIE-LABlab(83.73, -37.07, 62.96)
CIE-LCHlch(83.73, 73.07, 120.49°)
OKLaboklab(84.71% -0.1058 0.1439)
OKLCHoklch(84.71% 0.179 126.3)
XYZxyz(46.0897, 63.5578, 17.6227)
Luminance0.6356 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE151 #8351E1
analogous
#E1CB51 #AFE151 #67E151
triadic
#AFE151 #51AFE1 #E151AF
tetradic
#AFE151 #51E1CB #8351E1 #E15167
square
#AFE151 #51E1CB #8351E1 #E15167
split-complementary
#AFE151 #5167E1 #CB51E1
monochromatic
#709D1B #95D124 #AFE151 #C7EA85 #DFF3B9

Accessibility & contrast

On white

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

On black

13.71
#AFE151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE151
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE151#FFFFFF#000000##000000
##AFE1511.001.5313.7113.71
#FFFFFF1.531.0021.0021.00
#00000013.7121.001.001.00
##00000013.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD33E
Deuteranopia (green-blind)
#E5D05C
Tritanopia (blue-blind)
#B6D7C3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afe151;
/* rgb */ color: rgb(175, 225, 81);
/* oklch */ color: oklch(84.7% 0.179 126.3);
Tailwind
colors: {
  custom: {
    50: '#caea88',
    500: '#afe151',
    950: '#000000',
  },
}
SCSS
$custom: #afe151;
$custom-light: #caea88;
$custom-dark: #000000;
JSON
{
  "hex": "#afe151",
  "rgb": {
    "r": 175,
    "g": 225,
    "b": 81
  },
  "hsl": {
    "h": 80.833,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.84713,
    "c": 0.17861,
    "h": 126.3
  },
  "luminance": 0.63558
}

Semantic roles & 50–950 ramp

primary
#AFE151
secondary
#5B36A0
accent
#3AED79
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFE151

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

Preview Lab → · Contrast checker → · Palette generator →

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