#AFDF52#AFDF52

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

Color values

HEX#AFDF52
RGBrgb(175, 223, 82)
HSLhsl(80, 69%, 60%)
HSVhsv(80, 63%, 87%)
CMYKcmyk(21.5%, 0%, 63.2%, 12.5%)
CIE-LABlab(83.18, -36.10, 61.96)
CIE-LCHlch(83.18, 71.71, 120.22°)
OKLaboklab(84.27% -0.103 0.1419)
OKLCHoklch(84.27% 0.175 126)
XYZxyz(45.5900, 62.4979, 17.6424)
Luminance0.6250 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF52 #8252DF
analogous
#DFC952 #AFDF52 #68DF52
triadic
#AFDF52 #52AFDF #DF52AF
tetradic
#AFDF52 #52DFC9 #8252DF #DF5268
square
#AFDF52 #52DFC9 #8252DF #DF5268
split-complementary
#AFDF52 #5268DF #C952DF
monochromatic
#6F9A1D #95CE26 #AFDF52 #C7E986 #DFF2B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFDF52#FFFFFF#000000##000000
##AFDF521.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)
#EAD140
Deuteranopia (green-blind)
#E4CE5D
Tritanopia (blue-blind)
#B6D5C2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf52;
/* rgb */ color: rgb(175, 223, 82);
/* oklch */ color: oklch(84.3% 0.175 126.0);
Tailwind
colors: {
  custom: {
    50: '#cae989',
    500: '#afdf52',
    950: '#000000',
  },
}
SCSS
$custom: #afdf52;
$custom-light: #cae989;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf52",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 82
  },
  "hsl": {
    "h": 80.426,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.84265,
    "c": 0.17536,
    "h": 126
  },
  "luminance": 0.62499
}

Semantic roles & 50–950 ramp

primary
#AFDF52
secondary
#5A379E
accent
#3CEC78
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFDF52

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

Preview Lab → · Contrast checker → · Palette generator →

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