#AFDF5B#AFDF5B

#AFDF5B is a very light, vivid yellow-green. Relative luminance 0.626; OKLCH L 84.4% C 0.168 H 126.6°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#AFDF5B
RGBrgb(175, 223, 91)
HSLhsl(82, 67%, 62%)
HSVhsv(82, 59%, 87%)
CMYKcmyk(21.5%, 0%, 59.2%, 12.5%)
CIE-LABlab(83.25, -35.39, 58.27)
CIE-LCHlch(83.25, 68.17, 121.27°)
OKLaboklab(84.35% -0.1003 0.1351)
OKLCHoklch(84.35% 0.168 126.6)
XYZxyz(45.9552, 62.6440, 19.5659)
Luminance0.6264 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF5B #8B5BDF
analogous
#DFCD5B #AFDF5B #6DDF5B
triadic
#AFDF5B #5BAFDF #DF5BAF
tetradic
#AFDF5B #5BDFCD #8B5BDF #DF5B6D
square
#AFDF5B #5BDFCD #8B5BDF #DF5B6D
split-complementary
#AFDF5B #5B6DDF #CD5BDF
monochromatic
#71A01F #96D429 #AFDF5B #C8E98E #E1F3C1

Accessibility & contrast

On white

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

On black

13.53
#AFDF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF5B
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF5B#FFFFFF#000000##000000
##AFDF5B1.001.5513.5313.53
#FFFFFF1.551.0021.0021.00
#00000013.5321.001.001.00
##00000013.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD14C
Deuteranopia (green-blind)
#E3CF64
Tritanopia (blue-blind)
#B5D5C3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf5b;
/* rgb */ color: rgb(175, 223, 91);
/* oklch */ color: oklch(84.4% 0.168 126.6);
Tailwind
colors: {
  custom: {
    50: '#cae98e',
    500: '#afdf5b',
    950: '#000000',
  },
}
SCSS
$custom: #afdf5b;
$custom-light: #cae98e;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf5b",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 91
  },
  "hsl": {
    "h": 81.818,
    "s": 67.347,
    "l": 61.569
  },
  "oklch": {
    "l": 0.84352,
    "c": 0.16827,
    "h": 126.6
  },
  "luminance": 0.62645
}

Semantic roles & 50–950 ramp

primary
#AFDF5B
secondary
#613BA3
accent
#16CF5A
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160D
muted
#83847F

Preview Lab

Preview with #AFDF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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