#AFDF56#AFDF56

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

Color values

HEX#AFDF56
RGBrgb(175, 223, 86)
HSLhsl(81, 68%, 61%)
HSVhsv(81, 61%, 87%)
CMYKcmyk(21.5%, 0%, 61.4%, 12.5%)
CIE-LABlab(83.21, -35.79, 60.34)
CIE-LCHlch(83.21, 70.16, 120.67°)
OKLaboklab(84.3% -0.1018 0.139)
OKLCHoklch(84.3% 0.172 126.2)
XYZxyz(45.7467, 62.5606, 18.4676)
Luminance0.6256 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF56 #8656DF
analogous
#DFCA56 #AFDF56 #6ADF56
triadic
#AFDF56 #56AFDF #DF56AF
tetradic
#AFDF56 #56DFCA #8656DF #DF566A
square
#AFDF56 #56DFCA #8656DF #DF566A
split-complementary
#AFDF56 #566ADF #CA56DF
monochromatic
#709D1E #95D027 #AFDF56 #C7E989 #E0F2BD

Accessibility & contrast

On white

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

On black

13.51
#AFDF56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF56
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF56#FFFFFF#000000##000000
##AFDF561.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afdf56;
/* rgb */ color: rgb(175, 223, 86);
/* oklch */ color: oklch(84.3% 0.172 126.2);
Tailwind
colors: {
  custom: {
    50: '#cae98b',
    500: '#afdf56',
    950: '#000000',
  },
}
SCSS
$custom: #afdf56;
$custom-light: #cae98b;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf56",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 86
  },
  "hsl": {
    "h": 81.022,
    "s": 68.159,
    "l": 60.588
  },
  "oklch": {
    "l": 0.84302,
    "c": 0.17228,
    "h": 126.2
  },
  "luminance": 0.62561
}

Semantic roles & 50–950 ramp

primary
#AFDF56
secondary
#5D39A0
accent
#15D057
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFDF56

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

Preview Lab → · Contrast checker → · Palette generator →

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