#AFE797#AFE797

#AFE797 is a very light, vivid green. Relative luminance 0.685; OKLCH L 87.0% C 0.121 H 136.6°. Best body text is #000000 at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#AFE797
RGBrgb(175, 231, 151)
HSLhsl(102, 63%, 75%)
HSVhsv(102, 35%, 91%)
CMYKcmyk(24.2%, 0%, 34.6%, 9.4%)
CIE-LABlab(86.26, -32.24, 33.35)
CIE-LCHlch(86.26, 46.38, 134.03°)
OKLaboklab(87.02% -0.0879 0.0831)
OKLCHoklch(87.02% 0.121 136.6)
XYZxyz(51.8396, 68.4987, 39.7624)
Luminance0.6850 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE797 #CF97E7
analogous
#D7E797 #AFE797 #97E7A7
triadic
#AFE797 #97AFE7 #E797AF
tetradic
#AFE797 #97D7E7 #CF97E7 #E7A797
square
#AFE797 #97D7E7 #CF97E7 #E7A797
split-complementary
#AFE797 #A797E7 #E797D7
monochromatic
#63D034 #89DC65 #AFE797 #D5F2C9 #ECF9E6

Accessibility & contrast

On white

1.43
#AFE797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.70
#AFE797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE797
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE797#FFFFFF#000000##000000
##AFE7971.001.4314.7014.70
#FFFFFF1.431.0021.0021.00
#00000014.7021.001.001.00
##00000014.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDDB92
Deuteranopia (green-blind)
#E4D69B
Tritanopia (blue-blind)
#AEE1D3
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #afe797;
/* rgb */ color: rgb(175, 231, 151);
/* oklch */ color: oklch(87.0% 0.121 136.6);
Tailwind
colors: {
  custom: {
    50: '#c8efb6',
    500: '#afe797',
    950: '#000000',
  },
}
SCSS
$custom: #afe797;
$custom-light: #c8efb6;
$custom-dark: #000000;
JSON
{
  "hex": "#afe797",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 102,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.87019,
    "c": 0.12097,
    "h": 136.6
  },
  "luminance": 0.685
}

Semantic roles & 50–950 ramp

primary
#AFE797
secondary
#A461C1
accent
#1BCA96
background
#FDFFFD
surface
#F9FEF8
border
#D2D6D1
text
#131611
muted
#828581

Preview Lab

Preview with #AFE797

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

Preview Lab → · Contrast checker → · Palette generator →

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