#AFDF58#AFDF58

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

Color values

HEX#AFDF58
RGBrgb(175, 223, 88)
HSLhsl(81, 68%, 61%)
HSVhsv(81, 61%, 87%)
CMYKcmyk(21.5%, 0%, 60.5%, 12.5%)
CIE-LABlab(83.23, -35.63, 59.52)
CIE-LCHlch(83.23, 69.37, 120.91°)
OKLaboklab(84.32% -0.1012 0.1375)
OKLCHoklch(84.32% 0.171 126.4)
XYZxyz(45.8284, 62.5932, 18.8979)
Luminance0.6259 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF58 #8858DF
analogous
#DFCB58 #AFDF58 #6BDF58
triadic
#AFDF58 #58AFDF #DF58AF
tetradic
#AFDF58 #58DFCB #8858DF #DF586B
square
#AFDF58 #58DFCB #8858DF #DF586B
split-complementary
#AFDF58 #586BDF #CB58DF
monochromatic
#719E1E #95D228 #AFDF58 #C8E98B #E0F3BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFDF58#FFFFFF#000000##000000
##AFDF581.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)
#EAD148
Deuteranopia (green-blind)
#E3CF62
Tritanopia (blue-blind)
#B5D5C2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf58;
/* rgb */ color: rgb(175, 223, 88);
/* oklch */ color: oklch(84.3% 0.171 126.4);
Tailwind
colors: {
  custom: {
    50: '#cae98c',
    500: '#afdf58',
    950: '#000000',
  },
}
SCSS
$custom: #afdf58;
$custom-light: #cae98c;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf58",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 88
  },
  "hsl": {
    "h": 81.333,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.84321,
    "c": 0.1707,
    "h": 126.4
  },
  "luminance": 0.62594
}

Semantic roles & 50–950 ramp

primary
#AFDF58
secondary
#5F3AA2
accent
#16D058
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFDF58

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

Preview Lab → · Contrast checker → · Palette generator →

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