#AFD97B#AFD97B

#AFD97B is a very light, vivid yellow-green. Relative luminance 0.602; OKLCH L 83.4% C 0.130 H 128.6°. Best body text is #000000 at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#AFD97B
RGBrgb(175, 217, 123)
HSLhsl(87, 55%, 67%)
HSVhsv(87, 43%, 85%)
CMYKcmyk(19.4%, 0%, 43.3%, 14.9%)
CIE-LABlab(81.93, -29.36, 41.78)
CIE-LCHlch(81.93, 51.06, 125.10°)
OKLaboklab(83.4% -0.081 0.1015)
OKLCHoklch(83.4% 0.13 128.6)
XYZxyz(46.0667, 60.1690, 27.9218)
Luminance0.6017 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD97B #A57BD9
analogous
#D9D47B #AFD97B #80D97B
triadic
#AFD97B #7BAFD9 #D97BAF
tetradic
#AFD97B #7BD9D4 #A57BD9 #D97B80
square
#AFD97B #7BD9D4 #A57BD9 #D97B80
split-complementary
#AFD97B #7B80D9 #D47BD9
monochromatic
#73A931 #92CB4B #AFD97B #CCE7AB #E9F4DA

Accessibility & contrast

On white

1.61
#AFD97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.03
#AFD97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD97B
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD97B#FFFFFF#000000##000000
##AFD97B1.001.6113.0313.03
#FFFFFF1.611.0021.0021.00
#00000013.0321.001.001.00
##00000013.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CE74
Deuteranopia (green-blind)
#DBCB80
Tritanopia (blue-blind)
#B3D2C2
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #afd97b;
/* rgb */ color: rgb(175, 217, 123);
/* oklch */ color: oklch(83.4% 0.130 128.6);
Tailwind
colors: {
  custom: {
    50: '#c8e5a2',
    500: '#afd97b',
    950: '#000000',
  },
}
SCSS
$custom: #afd97b;
$custom-light: #c8e5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#afd97b",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 86.809,
    "s": 55.294,
    "l": 66.667
  },
  "oklch": {
    "l": 0.834,
    "c": 0.12991,
    "h": 128.6
  },
  "luminance": 0.6017
}

Semantic roles & 50–950 ramp

primary
#AFD97B
secondary
#774CAC
accent
#23C36A
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD97B

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

Preview Lab → · Contrast checker → · Palette generator →

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