#AFD457#AFD457

#AFD457 is a light, vivid yellow-green. Relative luminance 0.569; OKLCH L 81.8% C 0.157 H 123.7°. Best body text is #000000 at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#AFD457
RGBrgb(175, 212, 87)
HSLhsl(78, 59%, 59%)
HSVhsv(78, 59%, 83%)
CMYKcmyk(17.5%, 0%, 59%, 16.9%)
CIE-LABlab(80.12, -30.63, 56.50)
CIE-LCHlch(80.12, 64.27, 118.46°)
OKLaboklab(81.81% -0.0874 0.1309)
OKLCHoklch(81.81% 0.157 123.7)
XYZxyz(42.9432, 56.8888, 17.7332)
Luminance0.5689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD457 #7C57D4
analogous
#D4BA57 #AFD457 #70D457
triadic
#AFD457 #57AFD4 #D457AF
tetradic
#AFD457 #57D4BA #7C57D4 #D45770
square
#AFD457 #57D4BA #7C57D4 #D45770
split-complementary
#AFD457 #5770D4 #BA57D4
monochromatic
#6E8D24 #94BD30 #AFD457 #C6E088 #DDEDB8

Accessibility & contrast

On white

1.70
#AFD457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.38
#AFD457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD457
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD457#FFFFFF#000000##000000
##AFD4571.001.7012.3812.38
#FFFFFF1.701.0021.0021.00
#00000012.3821.001.001.00
##00000012.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC849
Deuteranopia (green-blind)
#DAC65F
Tritanopia (blue-blind)
#B7CAB9
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd457;
/* rgb */ color: rgb(175, 212, 87);
/* oklch */ color: oklch(81.8% 0.157 123.7);
Tailwind
colors: {
  custom: {
    50: '#c9e18b',
    500: '#afd457',
    950: '#000000',
  },
}
SCSS
$custom: #afd457;
$custom-light: #c9e18b;
$custom-dark: #000000;
JSON
{
  "hex": "#afd457",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 87
  },
  "hsl": {
    "h": 77.76,
    "s": 59.242,
    "l": 58.627
  },
  "oklch": {
    "l": 0.81807,
    "c": 0.15742,
    "h": 123.7
  },
  "luminance": 0.56889
}

Semantic roles & 50–950 ramp

primary
#AFD457
secondary
#563D93
accent
#45E274
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD457

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

Preview Lab → · Contrast checker → · Palette generator →

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