#AFDF51#AFDF51

#AFDF51 is a very light, vivid yellow-green. Relative luminance 0.625; OKLCH L 84.3% C 0.176 H 125.9°. Best body text is #000000 at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#AFDF51
RGBrgb(175, 223, 81)
HSLhsl(80, 69%, 60%)
HSVhsv(80, 64%, 87%)
CMYKcmyk(21.5%, 0%, 63.7%, 12.5%)
CIE-LABlab(83.17, -36.17, 62.36)
CIE-LCHlch(83.17, 72.09, 120.11°)
OKLaboklab(84.26% -0.1033 0.1426)
OKLCHoklch(84.26% 0.176 125.9)
XYZxyz(45.5522, 62.4828, 17.4435)
Luminance0.6248 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF51 #8151DF
analogous
#DFC851 #AFDF51 #68DF51
triadic
#AFDF51 #51AFDF #DF51AF
tetradic
#AFDF51 #51DFC8 #8151DF #DF5168
square
#AFDF51 #51DFC8 #8151DF #DF5168
split-complementary
#AFDF51 #5168DF #C851DF
monochromatic
#6F991C #95CD26 #AFDF51 #C7E985 #DFF2B8

Accessibility & contrast

On white

1.56
#AFDF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.50
#AFDF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF51
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF51#FFFFFF#000000##000000
##AFDF511.001.5613.5013.50
#FFFFFF1.561.0021.0021.00
#00000013.5021.001.001.00
##00000013.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD13F
Deuteranopia (green-blind)
#E4CE5C
Tritanopia (blue-blind)
#B6D5C2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf51;
/* rgb */ color: rgb(175, 223, 81);
/* oklch */ color: oklch(84.3% 0.176 125.9);
Tailwind
colors: {
  custom: {
    50: '#cae988',
    500: '#afdf51',
    950: '#000000',
  },
}
SCSS
$custom: #afdf51;
$custom-light: #cae988;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf51",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 81
  },
  "hsl": {
    "h": 80.282,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.84255,
    "c": 0.17611,
    "h": 125.9
  },
  "luminance": 0.62483
}

Semantic roles & 50–950 ramp

primary
#AFDF51
secondary
#5A379D
accent
#3CEC77
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFDF51

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

Preview Lab → · Contrast checker → · Palette generator →

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