#AFD17C#AFD17C

#AFD17C is a light, moderate yellow-green. Relative luminance 0.562; OKLCH L 81.6% C 0.117 H 126.6°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#AFD17C
RGBrgb(175, 209, 124)
HSLhsl(84, 48%, 65%)
HSVhsv(84, 41%, 82%)
CMYKcmyk(16.3%, 0%, 40.7%, 18%)
CIE-LABlab(79.71, -25.41, 38.47)
CIE-LCHlch(79.71, 46.10, 123.45°)
OKLaboklab(81.62% -0.0699 0.0941)
OKLCHoklch(81.62% 0.117 126.6)
XYZxyz(44.1174, 56.1697, 27.5824)
Luminance0.5617 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD17C #9E7CD1
analogous
#D1C97C #AFD17C #84D17C
triadic
#AFD17C #7CAFD1 #D17CAF
tetradic
#AFD17C #7CD1C9 #9E7CD1 #D17C84
square
#AFD17C #7CD1C9 #9E7CD1 #D17C84
split-complementary
#AFD17C #7C84D1 #C97CD1
monochromatic
#739C37 #93C14F #AFD17C #CBE1A9 #E6F1D7

Accessibility & contrast

On white

1.72
#AFD17C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#AFD17C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD17C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD17C#FFFFFF#000000##000000
##AFD17C1.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C776
Deuteranopia (green-blind)
#D4C580
Tritanopia (blue-blind)
#B3CABC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd17c;
/* rgb */ color: rgb(175, 209, 124);
/* oklch */ color: oklch(81.6% 0.117 126.6);
Tailwind
colors: {
  custom: {
    50: '#c8dfa3',
    500: '#afd17c',
    950: '#000000',
  },
}
SCSS
$custom: #afd17c;
$custom-light: #c8dfa3;
$custom-dark: #000000;
JSON
{
  "hex": "#afd17c",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 124
  },
  "hsl": {
    "h": 84,
    "s": 48.023,
    "l": 65.294
  },
  "oklch": {
    "l": 0.8162,
    "c": 0.11721,
    "h": 126.6
  },
  "luminance": 0.5617
}

Semantic roles & 50–950 ramp

primary
#AFD17C
secondary
#7050A1
accent
#2ABB64
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD17C

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

Preview Lab → · Contrast checker → · Palette generator →

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