#AFE798#AFE798

#AFE798 is a very light, moderate green. Relative luminance 0.685; OKLCH L 87.0% C 0.120 H 136.9°. Best body text is #000000 at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#AFE798
RGBrgb(175, 231, 152)
HSLhsl(103, 62%, 75%)
HSVhsv(103, 34%, 91%)
CMYKcmyk(24.2%, 0%, 34.2%, 9.4%)
CIE-LABlab(86.27, -32.09, 32.86)
CIE-LCHlch(86.27, 45.93, 134.32°)
OKLaboklab(87.04% -0.0875 0.0819)
OKLCHoklch(87.04% 0.12 136.9)
XYZxyz(51.9212, 68.5313, 40.1920)
Luminance0.6853 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE798 #D098E7
analogous
#D6E798 #AFE798 #98E7A9
triadic
#AFE798 #98AFE7 #E798AF
tetradic
#AFE798 #98D6E7 #D098E7 #E7A998
square
#AFE798 #98D6E7 #D098E7 #E7A998
split-complementary
#AFE798 #A998E7 #E798D6
monochromatic
#62D035 #88DB66 #AFE798 #D6F3CA #ECF9E6

Accessibility & contrast

On white

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

On black

14.71
#AFE798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE798
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE798#FFFFFF#000000##000000
##AFE7981.001.4314.7114.71
#FFFFFF1.431.0021.0021.00
#00000014.7121.001.001.00
##00000014.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afe798;
/* rgb */ color: rgb(175, 231, 152);
/* oklch */ color: oklch(87.0% 0.120 136.9);
Tailwind
colors: {
  custom: {
    50: '#c8efb7',
    500: '#afe798',
    950: '#000000',
  },
}
SCSS
$custom: #afe798;
$custom-light: #c8efb7;
$custom-dark: #000000;
JSON
{
  "hex": "#afe798",
  "rgb": {
    "r": 175,
    "g": 231,
    "b": 152
  },
  "hsl": {
    "h": 102.532,
    "s": 62.205,
    "l": 75.098
  },
  "oklch": {
    "l": 0.87038,
    "c": 0.1199,
    "h": 136.9
  },
  "luminance": 0.68533
}

Semantic roles & 50–950 ramp

primary
#AFE798
secondary
#A562C1
accent
#1CCA97
background
#FDFFFD
surface
#F9FEF8
border
#D2D6D1
text
#131611
muted
#828581

Preview Lab

Preview with #AFE798

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

Preview Lab → · Contrast checker → · Palette generator →

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