#AFDF54#AFDF54

#AFDF54 is a very light, vivid yellow-green. Relative luminance 0.625; OKLCH L 84.3% C 0.174 H 126.1°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#AFDF54
RGBrgb(175, 223, 84)
HSLhsl(81, 68%, 60%)
HSVhsv(81, 62%, 87%)
CMYKcmyk(21.5%, 0%, 62.3%, 12.5%)
CIE-LABlab(83.19, -35.95, 61.16)
CIE-LCHlch(83.19, 70.94, 120.44°)
OKLaboklab(84.28% -0.1024 0.1405)
OKLCHoklch(84.28% 0.174 126.1)
XYZxyz(45.6672, 62.5288, 18.0491)
Luminance0.6253 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFDF54 #8454DF
analogous
#DFC954 #AFDF54 #6ADF54
triadic
#AFDF54 #54AFDF #DF54AF
tetradic
#AFDF54 #54DFC9 #8454DF #DF546A
square
#AFDF54 #54DFC9 #8454DF #DF546A
split-complementary
#AFDF54 #546ADF #C954DF
monochromatic
#709C1D #95CF27 #AFDF54 #C7E988 #DFF2BB

Accessibility & contrast

On white

1.55
#AFDF54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#AFDF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFDF54
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFDF54#FFFFFF#000000##000000
##AFDF541.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD143
Deuteranopia (green-blind)
#E4CE5E
Tritanopia (blue-blind)
#B6D5C2
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #afdf54;
/* rgb */ color: rgb(175, 223, 84);
/* oklch */ color: oklch(84.3% 0.174 126.1);
Tailwind
colors: {
  custom: {
    50: '#cae98a',
    500: '#afdf54',
    950: '#000000',
  },
}
SCSS
$custom: #afdf54;
$custom-light: #cae98a;
$custom-dark: #000000;
JSON
{
  "hex": "#afdf54",
  "rgb": {
    "r": 175,
    "g": 223,
    "b": 84
  },
  "hsl": {
    "h": 80.719,
    "s": 68.473,
    "l": 60.196
  },
  "oklch": {
    "l": 0.84283,
    "c": 0.17385,
    "h": 126.1
  },
  "luminance": 0.62529
}

Semantic roles & 50–950 ramp

primary
#AFDF54
secondary
#5C389F
accent
#15D056
background
#FEFEFC
surface
#FBFCF4
border
#D4D5CE
text
#14160C
muted
#83847F

Preview Lab

Preview with #AFDF54

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

Preview Lab → · Contrast checker → · Palette generator →

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