#AFE270#AFE270

#AFE270 is a very light, vivid yellow-green. Relative luminance 0.647; OKLCH L 85.3% C 0.154 H 129.1°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#AFE270
RGBrgb(175, 226, 112)
HSLhsl(87, 66%, 66%)
HSVhsv(87, 50%, 89%)
CMYKcmyk(22.6%, 0%, 50.4%, 11.4%)
CIE-LABlab(84.32, -34.78, 50.02)
CIE-LCHlch(84.32, 60.92, 124.81°)
OKLaboklab(85.28% -0.0969 0.1192)
OKLCHoklch(85.28% 0.154 129.1)
XYZxyz(47.7998, 64.6756, 25.2914)
Luminance0.6468 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE270 #A370E2
analogous
#E2DC70 #AFE270 #76E270
triadic
#AFE270 #70AFE2 #E270AF
tetradic
#AFE270 #70E2DC #A370E2 #E27076
square
#AFE270 #70E2DC #A370E2 #E27076
split-complementary
#AFE270 #7076E2 #DC70E2
monochromatic
#73B324 #93D83D #AFE270 #CBECA3 #E8F7D6

Accessibility & contrast

On white

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

On black

13.94
#AFE270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE270
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE270#FFFFFF#000000##000000
##AFE2701.001.5113.9413.94
#FFFFFF1.511.0021.0021.00
#00000013.9421.001.001.00
##00000013.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD566
Deuteranopia (green-blind)
#E4D177
Tritanopia (blue-blind)
#B3DAC8
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #afe270;
/* rgb */ color: rgb(175, 226, 112);
/* oklch */ color: oklch(85.3% 0.154 129.1);
Tailwind
colors: {
  custom: {
    50: '#c9eb9c',
    500: '#afe270',
    950: '#000000',
  },
}
SCSS
$custom: #afe270;
$custom-light: #c9eb9c;
$custom-dark: #000000;
JSON
{
  "hex": "#afe270",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 112
  },
  "hsl": {
    "h": 86.842,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.85279,
    "c": 0.15362,
    "h": 129.1
  },
  "luminance": 0.64677
}

Semantic roles & 50–950 ramp

primary
#AFE270
secondary
#7542B4
accent
#17CE69
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160E
muted
#83847F

Preview Lab

Preview with #AFE270

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

Preview Lab → · Contrast checker → · Palette generator →

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