#AFD152#AFD152

#AFD152 is a light, vivid yellow-green. Relative luminance 0.553; OKLCH L 81.1% C 0.158 H 122.6°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#AFD152
RGBrgb(175, 209, 82)
HSLhsl(76, 58%, 57%)
HSVhsv(76, 61%, 82%)
CMYKcmyk(16.3%, 0%, 60.8%, 18%)
CIE-LABlab(79.23, -29.62, 57.67)
CIE-LCHlch(79.23, 64.83, 117.18°)
OKLaboklab(81.08% -0.0851 0.1328)
OKLCHoklch(81.08% 0.158 122.6)
XYZxyz(42.0030, 55.3240, 16.4468)
Luminance0.5532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD152 #7452D1
analogous
#D1B452 #AFD152 #70D152
triadic
#AFD152 #52AFD1 #D152AF
tetradic
#AFD152 #52D1B4 #7452D1 #D15270
square
#AFD152 #52D1B4 #7452D1 #D15270
split-complementary
#AFD152 #5270D1 #B452D1
monochromatic
#6B8523 #92B630 #AFD152 #C5DE82 #DCEBB3

Accessibility & contrast

On white

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

On black

12.06
#AFD152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD152
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD152#FFFFFF#000000##000000
##AFD1521.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC543
Deuteranopia (green-blind)
#D8C45B
Tritanopia (blue-blind)
#B7C7B6
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #afd152;
/* rgb */ color: rgb(175, 209, 82);
/* oklch */ color: oklch(81.1% 0.158 122.6);
Tailwind
colors: {
  custom: {
    50: '#cadf88',
    500: '#afd152',
    950: '#000000',
  },
}
SCSS
$custom: #afd152;
$custom-light: #cadf88;
$custom-dark: #000000;
JSON
{
  "hex": "#afd152",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 76.063,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81076,
    "c": 0.15773,
    "h": 122.6
  },
  "luminance": 0.55324
}

Semantic roles & 50–950 ramp

primary
#AFD152
secondary
#513B8C
accent
#47E170
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD152

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

Preview Lab → · Contrast checker → · Palette generator →

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