#AFE251#AFE251

#AFE251 is a very light, vivid yellow-green. Relative luminance 0.641; OKLCH L 84.9% C 0.180 H 126.5°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#AFE251
RGBrgb(175, 226, 81)
HSLhsl(81, 71%, 60%)
HSVhsv(81, 64%, 89%)
CMYKcmyk(22.6%, 0%, 64.2%, 11.4%)
CIE-LABlab(84.02, -37.52, 63.27)
CIE-LCHlch(84.02, 73.56, 120.67°)
OKLaboklab(84.94% -0.1071 0.1445)
OKLCHoklch(84.94% 0.18 126.5)
XYZxyz(46.3608, 64.1000, 17.7130)
Luminance0.6410 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE251 #8451E2
analogous
#E2CC51 #AFE251 #67E251
triadic
#AFE251 #51AFE2 #E251AF
tetradic
#AFE251 #51E2CC #8451E2 #E25167
square
#AFE251 #51E2CC #8451E2 #E25167
split-complementary
#AFE251 #5167E2 #CC51E2
monochromatic
#709E1A #95D323 #AFE251 #C7EB85 #DFF3BA

Accessibility & contrast

On white

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

On black

13.82
#AFE251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE251
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE251#FFFFFF#000000##000000
##AFE2511.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD43E
Deuteranopia (green-blind)
#E6D15C
Tritanopia (blue-blind)
#B6D8C4
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #afe251;
/* rgb */ color: rgb(175, 226, 81);
/* oklch */ color: oklch(84.9% 0.180 126.5);
Tailwind
colors: {
  custom: {
    50: '#caeb88',
    500: '#afe251',
    950: '#000000',
  },
}
SCSS
$custom: #afe251;
$custom-light: #caeb88;
$custom-dark: #000000;
JSON
{
  "hex": "#afe251",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 81
  },
  "hsl": {
    "h": 81.103,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.84942,
    "c": 0.17986,
    "h": 126.5
  },
  "luminance": 0.64101
}

Semantic roles & 50–950 ramp

primary
#AFE251
secondary
#5C36A1
accent
#12D356
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFE251

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

Preview Lab → · Contrast checker → · Palette generator →

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