#AFD178#AFD178

#AFD178 is a light, vivid yellow-green. Relative luminance 0.561; OKLCH L 81.6% C 0.122 H 126.1°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#AFD178
RGBrgb(175, 209, 120)
HSLhsl(83, 49%, 65%)
HSVhsv(83, 43%, 82%)
CMYKcmyk(16.3%, 0%, 42.6%, 18%)
CIE-LABlab(79.65, -25.89, 40.40)
CIE-LCHlch(79.65, 47.99, 122.66°)
OKLaboklab(81.56% -0.0715 0.0983)
OKLCHoklch(81.56% 0.122 126.1)
XYZxyz(43.8695, 56.0706, 26.2772)
Luminance0.5607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD178 #9A78D1
analogous
#D1C678 #AFD178 #83D178
triadic
#AFD178 #78AFD1 #D178AF
tetradic
#AFD178 #78D1C6 #9A78D1 #D17883
square
#AFD178 #78D1C6 #9A78D1 #D17883
split-complementary
#AFD178 #7883D1 #C678D1
monochromatic
#739A35 #94C14A #AFD178 #CAE1A6 #E5F0D3

Accessibility & contrast

On white

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

On black

12.21
#AFD178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD178
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD178#FFFFFF#000000##000000
##AFD1781.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC771
Deuteranopia (green-blind)
#D5C57D
Tritanopia (blue-blind)
#B4CABC
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd178;
/* rgb */ color: rgb(175, 209, 120);
/* oklch */ color: oklch(81.6% 0.122 126.1);
Tailwind
colors: {
  custom: {
    50: '#c8dfa0',
    500: '#afd178',
    950: '#000000',
  },
}
SCSS
$custom: #afd178;
$custom-light: #c8dfa0;
$custom-dark: #000000;
JSON
{
  "hex": "#afd178",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 120
  },
  "hsl": {
    "h": 82.921,
    "s": 49.171,
    "l": 64.51
  },
  "oklch": {
    "l": 0.81557,
    "c": 0.12154,
    "h": 126.1
  },
  "luminance": 0.56071
}

Semantic roles & 50–950 ramp

primary
#AFD178
secondary
#6D4E9F
accent
#29BC61
background
#FDFEFC
surface
#F9FCF5
border
#D2D5CF
text
#13150F
muted
#828480

Preview Lab

Preview with #AFD178

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

Preview Lab → · Contrast checker → · Palette generator →

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