#AFD257#AFD257

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

Color values

HEX#AFD257
RGBrgb(175, 210, 87)
HSLhsl(77, 58%, 58%)
HSVhsv(77, 59%, 82%)
CMYKcmyk(16.7%, 0%, 58.6%, 17.6%)
CIE-LABlab(79.55, -29.69, 55.87)
CIE-LCHlch(79.55, 63.27, 117.99°)
OKLaboklab(81.35% -0.0848 0.1296)
OKLCHoklch(81.35% 0.155 123.2)
XYZxyz(42.4464, 55.8951, 17.5676)
Luminance0.5589 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD257 #7A57D2
analogous
#D2B757 #AFD257 #71D257
triadic
#AFD257 #57AFD2 #D257AF
tetradic
#AFD257 #57D2B7 #7A57D2 #D25771
square
#AFD257 #57D2B7 #7A57D2 #D25771
split-complementary
#AFD257 #5771D2 #B757D2
monochromatic
#6D8A25 #93BA32 #AFD257 #C6DF87 #DDECB8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD257#FFFFFF#000000##000000
##AFD2571.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)
#DDC64A
Deuteranopia (green-blind)
#D9C55F
Tritanopia (blue-blind)
#B7C8B8
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd257;
/* rgb */ color: rgb(175, 210, 87);
/* oklch */ color: oklch(81.4% 0.155 123.2);
Tailwind
colors: {
  custom: {
    50: '#c9df8b',
    500: '#afd257',
    950: '#000000',
  },
}
SCSS
$custom: #afd257;
$custom-light: #c9df8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd257",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 87
  },
  "hsl": {
    "h": 77.073,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81353,
    "c": 0.15485,
    "h": 123.2
  },
  "luminance": 0.55895
}

Semantic roles & 50–950 ramp

primary
#AFD257
secondary
#553D90
accent
#47E173
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD257

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

Preview Lab → · Contrast checker → · Palette generator →

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