#AFD954#AFD954

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

Color values

HEX#AFD954
RGBrgb(175, 217, 84)
HSLhsl(79, 64%, 59%)
HSVhsv(79, 61%, 85%)
CMYKcmyk(19.4%, 0%, 61.3%, 14.9%)
CIE-LABlab(81.50, -33.20, 59.31)
CIE-LCHlch(81.50, 67.97, 119.24°)
OKLaboklab(82.91% -0.0948 0.1365)
OKLCHoklch(82.91% 0.166 124.8)
XYZxyz(44.0925, 59.3793, 17.5242)
Luminance0.5938 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD954 #7E54D9
analogous
#D9C054 #AFD954 #6DD954
triadic
#AFD954 #54AFD9 #D954AF
tetradic
#AFD954 #54D9C0 #7E54D9 #D9546D
square
#AFD954 #54D9C0 #7E54D9 #D9546D
split-complementary
#AFD954 #546DD9 #C054D9
monochromatic
#6E9220 #94C42C #AFD954 #C6E486 #DEEFB8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD954#FFFFFF#000000##000000
##AFD9541.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)
#E4CC44
Deuteranopia (green-blind)
#DFCA5D
Tritanopia (blue-blind)
#B6CFBD
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd954;
/* rgb */ color: rgb(175, 217, 84);
/* oklch */ color: oklch(82.9% 0.166 124.8);
Tailwind
colors: {
  custom: {
    50: '#cae589',
    500: '#afd954',
    950: '#000000',
  },
}
SCSS
$custom: #afd954;
$custom-light: #cae589;
$custom-dark: #000000;
JSON
{
  "hex": "#afd954",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 84
  },
  "hsl": {
    "h": 78.947,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.82914,
    "c": 0.16625,
    "h": 124.8
  },
  "luminance": 0.5938
}

Semantic roles & 50–950 ramp

primary
#AFD954
secondary
#573A97
accent
#41E775
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14150C
muted
#83847F

Preview Lab

Preview with #AFD954

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

Preview Lab → · Contrast checker → · Palette generator →

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