#AFD951#AFD951

#AFD951 is a very light, vivid yellow-green. Relative luminance 0.593; OKLCH L 82.9% C 0.169 H 124.6°. Best body text is #000000 at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#AFD951
RGBrgb(175, 217, 81)
HSLhsl(79, 64%, 58%)
HSVhsv(79, 63%, 85%)
CMYKcmyk(19.4%, 0%, 62.7%, 14.9%)
CIE-LABlab(81.47, -33.43, 60.54)
CIE-LCHlch(81.47, 69.15, 118.90°)
OKLaboklab(82.89% -0.0957 0.1388)
OKLCHoklch(82.89% 0.169 124.6)
XYZxyz(43.9775, 59.3334, 16.9186)
Luminance0.5933 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD951 #7B51D9
analogous
#D9BF51 #AFD951 #6BD951
triadic
#AFD951 #51AFD9 #D951AF
tetradic
#AFD951 #51D9BF #7B51D9 #D9516B
square
#AFD951 #51D9BF #7B51D9 #D9516B
split-complementary
#AFD951 #516BD9 #BF51D9
monochromatic
#6D901F #93C22A #AFD951 #C6E483 #DDEFB5

Accessibility & contrast

On white

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

On black

12.87
#AFD951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD951
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD951#FFFFFF#000000##000000
##AFD9511.001.6312.8712.87
#FFFFFF1.631.0021.0021.00
#00000012.8721.001.001.00
##00000012.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC40
Deuteranopia (green-blind)
#DFCA5B
Tritanopia (blue-blind)
#B6CFBD
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd951;
/* rgb */ color: rgb(175, 217, 81);
/* oklch */ color: oklch(82.9% 0.169 124.6);
Tailwind
colors: {
  custom: {
    50: '#cae588',
    500: '#afd951',
    950: '#000000',
  },
}
SCSS
$custom: #afd951;
$custom-light: #cae588;
$custom-dark: #000000;
JSON
{
  "hex": "#afd951",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 78.529,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.82886,
    "c": 0.16858,
    "h": 124.6
  },
  "luminance": 0.59334
}

Semantic roles & 50–950 ramp

primary
#AFD951
secondary
#553995
accent
#41E774
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD951

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

Preview Lab → · Contrast checker → · Palette generator →

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