#AFDF57#AFDF57

#AFDF57 is a very light, vivid yellow-green. Relative luminance 0.626; OKLCH L 84.3% C 0.172 H 126.3°. Best body text is #000000 at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#AFDF57
RGBrgb(175, 223, 87)
HSLhsl(81, 68%, 61%)
HSVhsv(81, 61%, 87%)
CMYKcmyk(21.5%, 0%, 61%, 12.5%)
CIE-LABlab(83.22, -35.71, 59.93)
CIE-LCHlch(83.22, 69.77, 120.79°)
OKLaboklab(84.31% -0.1015 0.1382)
OKLCHoklch(84.31% 0.172 126.3)
XYZxyz(45.7872, 62.5768, 18.6812)
Luminance0.6258 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF57 #8757DF
analogous
#DFCB57 #AFDF57 #6BDF57
triadic
#AFDF57 #57AFDF #DF57AF
tetradic
#AFDF57 #57DFCB #8757DF #DF576B
square
#AFDF57 #57DFCB #8757DF #DF576B
split-complementary
#AFDF57 #576BDF #CB57DF
monochromatic
#719E1E #95D128 #AFDF57 #C7E98A #E0F3BE

Accessibility & contrast

On white

1.55
#AFDF57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.52
#AFDF57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF57
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF57#FFFFFF#000000##000000
##AFDF571.001.5513.5213.52
#FFFFFF1.551.0021.0021.00
#00000013.5221.001.001.00
##00000013.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD147
Deuteranopia (green-blind)
#E3CF61
Tritanopia (blue-blind)
#B5D5C2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf57;
/* rgb */ color: rgb(175, 223, 87);
/* oklch */ color: oklch(84.3% 0.172 126.3);
Tailwind
colors: {
  custom: {
    50: '#cae98c',
    500: '#afdf57',
    950: '#000000',
  },
}
SCSS
$custom: #afdf57;
$custom-light: #cae98c;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf57",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 87
  },
  "hsl": {
    "h": 81.176,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.84312,
    "c": 0.1715,
    "h": 126.3
  },
  "luminance": 0.62577
}

Semantic roles & 50–950 ramp

primary
#AFDF57
secondary
#5E39A1
accent
#16D057
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFDF57

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

Preview Lab → · Contrast checker → · Palette generator →

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