#AFD159#AFD159

#AFD159 is a light, vivid yellow-green. Relative luminance 0.554; OKLCH L 81.1% C 0.152 H 123.1°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#AFD159
RGBrgb(175, 209, 89)
HSLhsl(77, 57%, 58%)
HSVhsv(77, 57%, 82%)
CMYKcmyk(16.3%, 0%, 57.4%, 18%)
CIE-LABlab(79.29, -29.05, 54.69)
CIE-LCHlch(79.29, 61.93, 117.98°)
OKLaboklab(81.15% -0.0828 0.1273)
OKLCHoklch(81.15% 0.152 123.1)
XYZxyz(42.2831, 55.4360, 17.9219)
Luminance0.5544 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD159 #7B59D1
analogous
#D1B759 #AFD159 #73D159
triadic
#AFD159 #59AFD1 #D159AF
tetradic
#AFD159 #59D1B7 #7B59D1 #D15973
square
#AFD159 #59D1B7 #7B59D1 #D15973
split-complementary
#AFD159 #5973D1 #B759D1
monochromatic
#6D8926 #93B933 #AFD159 #C6DE89 #DDECB9

Accessibility & contrast

On white

1.74
#AFD159 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#AFD159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD159
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD159#FFFFFF#000000##000000
##AFD1591.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC54C
Deuteranopia (green-blind)
#D8C461
Tritanopia (blue-blind)
#B7C8B7
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #afd159;
/* rgb */ color: rgb(175, 209, 89);
/* oklch */ color: oklch(81.1% 0.152 123.1);
Tailwind
colors: {
  custom: {
    50: '#c9df8c',
    500: '#afd159',
    950: '#000000',
  },
}
SCSS
$custom: #afd159;
$custom-light: #c9df8c;
$custom-dark: #000000;
JSON
{
  "hex": "#afd159",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 89
  },
  "hsl": {
    "h": 77,
    "s": 56.604,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81148,
    "c": 0.15185,
    "h": 123.1
  },
  "luminance": 0.55436
}

Semantic roles & 50–950 ramp

primary
#AFD159
secondary
#553E90
accent
#48E073
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD159

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

Preview Lab → · Contrast checker → · Palette generator →

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