#AFE268#AFE268

#AFE268 is a very light, vivid yellow-green. Relative luminance 0.645; OKLCH L 85.2% C 0.161 H 128.3°. Best body text is #000000 at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#AFE268
RGBrgb(175, 226, 104)
HSLhsl(85, 68%, 65%)
HSVhsv(85, 54%, 89%)
CMYKcmyk(22.6%, 0%, 54%, 11.4%)
CIE-LABlab(84.23, -35.58, 53.61)
CIE-LCHlch(84.23, 64.35, 123.57°)
OKLaboklab(85.18% -0.0997 0.1264)
OKLCHoklch(85.18% 0.161 128.3)
XYZxyz(47.3740, 64.5053, 23.0489)
Luminance0.6451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE268 #9B68E2
analogous
#E2D868 #AFE268 #72E268
triadic
#AFE268 #68AFE2 #E268AF
tetradic
#AFE268 #68E2D8 #9B68E2 #E26872
square
#AFE268 #68E2D8 #9B68E2 #E26872
split-complementary
#AFE268 #6872E2 #D868E2
monochromatic
#73AE21 #94D835 #AFE268 #CAEC9B #E5F6CF

Accessibility & contrast

On white

1.51
#AFE268 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.90
#AFE268 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE268
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE268#FFFFFF#000000##000000
##AFE2681.001.5113.9013.90
#FFFFFF1.511.0021.0021.00
#00000013.9021.001.001.00
##00000013.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD45C
Deuteranopia (green-blind)
#E5D170
Tritanopia (blue-blind)
#B4D9C7
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe268;
/* rgb */ color: rgb(175, 226, 104);
/* oklch */ color: oklch(85.2% 0.161 128.3);
Tailwind
colors: {
  custom: {
    50: '#c9eb96',
    500: '#afe268',
    950: '#000000',
  },
}
SCSS
$custom: #afe268;
$custom-light: #c9eb96;
$custom-dark: #000000;
JSON
{
  "hex": "#afe268",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 104
  },
  "hsl": {
    "h": 85.082,
    "s": 67.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.8518,
    "c": 0.16102,
    "h": 128.3
  },
  "luminance": 0.64506
}

Semantic roles & 50–950 ramp

primary
#AFE268
secondary
#6E3FB0
accent
#16D064
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160E
muted
#83847F

Preview Lab

Preview with #AFE268

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

Preview Lab → · Contrast checker → · Palette generator →

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