#AFD158#AFD158

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

Color values

HEX#AFD158
RGBrgb(175, 209, 88)
HSLhsl(77, 57%, 58%)
HSVhsv(77, 58%, 82%)
CMYKcmyk(16.3%, 0%, 57.9%, 18%)
CIE-LABlab(79.28, -29.13, 55.12)
CIE-LCHlch(79.28, 62.35, 117.86°)
OKLaboklab(81.14% -0.0832 0.1281)
OKLCHoklch(81.14% 0.153 123)
XYZxyz(42.2414, 55.4193, 17.7022)
Luminance0.5542 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD158 #7A58D1
analogous
#D1B758 #AFD158 #72D158
triadic
#AFD158 #58AFD1 #D158AF
tetradic
#AFD158 #58D1B7 #7A58D1 #D15872
square
#AFD158 #58D1B7 #7A58D1 #D15872
split-complementary
#AFD158 #5872D1 #B758D1
monochromatic
#6D8926 #93B933 #AFD158 #C6DE88 #DDEBB8

Accessibility & contrast

On white

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

On black

12.08
#AFD158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD158
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD158#FFFFFF#000000##000000
##AFD1581.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC54B
Deuteranopia (green-blind)
#D8C460
Tritanopia (blue-blind)
#B7C7B7
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #afd158;
/* rgb */ color: rgb(175, 209, 88);
/* oklch */ color: oklch(81.1% 0.153 123.0);
Tailwind
colors: {
  custom: {
    50: '#c9df8b',
    500: '#afd158',
    950: '#000000',
  },
}
SCSS
$custom: #afd158;
$custom-light: #c9df8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd158",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 76.86,
    "s": 56.808,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81137,
    "c": 0.15271,
    "h": 123
  },
  "luminance": 0.55419
}

Semantic roles & 50–950 ramp

primary
#AFD158
secondary
#553E8F
accent
#48E073
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD158

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

Preview Lab → · Contrast checker → · Palette generator →

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