#AFD956#AFD956

#AFD956 is a very light, vivid yellow-green. Relative luminance 0.594; OKLCH L 82.9% C 0.165 H 124.9°. Best body text is #000000 at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#AFD956
RGBrgb(175, 217, 86)
HSLhsl(79, 63%, 59%)
HSVhsv(79, 60%, 85%)
CMYKcmyk(19.4%, 0%, 60.4%, 14.9%)
CIE-LABlab(81.52, -33.04, 58.48)
CIE-LCHlch(81.52, 67.17, 119.46°)
OKLaboklab(82.93% -0.0942 0.135)
OKLCHoklch(82.93% 0.165 124.9)
XYZxyz(44.1719, 59.4111, 17.9427)
Luminance0.5941 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD956 #8056D9
analogous
#D9C256 #AFD956 #6ED956
triadic
#AFD956 #56AFD9 #D956AF
tetradic
#AFD956 #56D9C2 #8056D9 #D9566E
square
#AFD956 #56D9C2 #8056D9 #D9566E
split-complementary
#AFD956 #566ED9 #C256D9
monochromatic
#6F9321 #94C52C #AFD956 #C7E488 #DEEFBA

Accessibility & contrast

On white

1.63
#AFD956 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.88
#AFD956 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD956
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD956#FFFFFF#000000##000000
##AFD9561.001.6312.8812.88
#FFFFFF1.631.0021.0021.00
#00000012.8821.001.001.00
##00000012.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC47
Deuteranopia (green-blind)
#DECA5F
Tritanopia (blue-blind)
#B6CFBD
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd956;
/* rgb */ color: rgb(175, 217, 86);
/* oklch */ color: oklch(82.9% 0.165 124.9);
Tailwind
colors: {
  custom: {
    50: '#cae58b',
    500: '#afd956',
    950: '#000000',
  },
}
SCSS
$custom: #afd956;
$custom-light: #cae58b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd956",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 86
  },
  "hsl": {
    "h": 79.237,
    "s": 63.285,
    "l": 59.412
  },
  "oklch": {
    "l": 0.82934,
    "c": 0.16464,
    "h": 124.9
  },
  "luminance": 0.59412
}

Semantic roles & 50–950 ramp

primary
#AFD956
secondary
#593B98
accent
#41E676
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD956

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

Preview Lab → · Contrast checker → · Palette generator →

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