#AFD256#AFD256

#AFD256 is a light, vivid yellow-green. Relative luminance 0.559; OKLCH L 81.3% C 0.156 H 123.1°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#AFD256
RGBrgb(175, 210, 86)
HSLhsl(77, 58%, 58%)
HSVhsv(77, 59%, 82%)
CMYKcmyk(16.7%, 0%, 59%, 17.6%)
CIE-LABlab(79.54, -29.77, 56.30)
CIE-LCHlch(79.54, 63.68, 117.87°)
OKLaboklab(81.34% -0.0851 0.1304)
OKLCHoklch(81.34% 0.156 123.1)
XYZxyz(42.4058, 55.8788, 17.3539)
Luminance0.5588 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD256 #7956D2
analogous
#D2B756 #AFD256 #71D256
triadic
#AFD256 #56AFD2 #D256AF
tetradic
#AFD256 #56D2B7 #7956D2 #D25671
square
#AFD256 #56D2B7 #7956D2 #D25671
split-complementary
#AFD256 #5671D2 #B756D2
monochromatic
#6D8925 #93B931 #AFD256 #C6DF86 #DDECB7

Accessibility & contrast

On white

1.72
#AFD256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#AFD256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD256
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD256#FFFFFF#000000##000000
##AFD2561.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC648
Deuteranopia (green-blind)
#D9C55E
Tritanopia (blue-blind)
#B7C8B7
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd256;
/* rgb */ color: rgb(175, 210, 86);
/* oklch */ color: oklch(81.3% 0.156 123.1);
Tailwind
colors: {
  custom: {
    50: '#c9df8a',
    500: '#afd256',
    950: '#000000',
  },
}
SCSS
$custom: #afd256;
$custom-light: #c9df8a;
$custom-dark: #000000;
JSON
{
  "hex": "#afd256",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 86
  },
  "hsl": {
    "h": 76.935,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81343,
    "c": 0.15569,
    "h": 123.1
  },
  "luminance": 0.55879
}

Semantic roles & 50–950 ramp

primary
#AFD256
secondary
#543D90
accent
#47E172
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD256

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

Preview Lab → · Contrast checker → · Palette generator →

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