#AFD397#AFD397

#AFD397 is a very light, moderate yellow-green. Relative luminance 0.579; OKLCH L 82.6% C 0.090 H 133.3°. Best body text is #000000 at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#AFD397
RGBrgb(175, 211, 151)
HSLhsl(96, 41%, 71%)
HSVhsv(96, 28%, 83%)
CMYKcmyk(17.1%, 0%, 28.4%, 17.3%)
CIE-LABlab(80.70, -22.68, 25.92)
CIE-LCHlch(80.70, 34.44, 131.19°)
OKLaboklab(82.56% -0.0615 0.0654)
OKLCHoklch(82.56% 0.09 133.3)
XYZxyz(46.5583, 57.9361, 38.0020)
Luminance0.5794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD397 #BB97D3
analogous
#CDD397 #AFD397 #97D39D
triadic
#AFD397 #97AFD3 #D397AF
tetradic
#AFD397 #97CDD3 #BB97D3 #D39D97
square
#AFD397 #97CDD3 #BB97D3 #D39D97
split-complementary
#AFD397 #9D97D3 #D397CD
monochromatic
#6EA847 #8EC16C #AFD397 #D0E5C2 #EEF6E9

Accessibility & contrast

On white

1.67
#AFD397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.59
#AFD397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD397
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD397#FFFFFF#000000##000000
##AFD3971.001.6712.5912.59
#FFFFFF1.671.0021.0021.00
#00000012.5921.001.001.00
##00000012.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8CA93
Deuteranopia (green-blind)
#D2C79A
Tritanopia (blue-blind)
#B0CEC3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #afd397;
/* rgb */ color: rgb(175, 211, 151);
/* oklch */ color: oklch(82.6% 0.090 133.3);
Tailwind
colors: {
  custom: {
    50: '#c7e0b6',
    500: '#afd397',
    950: '#000000',
  },
}
SCSS
$custom: #afd397;
$custom-light: #c7e0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#afd397",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 151
  },
  "hsl": {
    "h": 96,
    "s": 40.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.8256,
    "c": 0.08972,
    "h": 133.3
  },
  "luminance": 0.57937
}

Semantic roles & 50–950 ramp

primary
#AFD397
secondary
#8E65A9
accent
#32B480
background
#FDFEFD
surface
#F9FCF8
border
#D2D5D1
text
#131511
muted
#828481

Preview Lab

Preview with #AFD397

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

Preview Lab → · Contrast checker → · Palette generator →

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