#AFD04F#AFD04F

#AFD04F is a light, vivid yellow-green. Relative luminance 0.548; OKLCH L 80.8% C 0.159 H 122.2°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#AFD04F
RGBrgb(175, 208, 79)
HSLhsl(75, 58%, 56%)
HSVhsv(75, 62%, 82%)
CMYKcmyk(15.9%, 0%, 62%, 18.4%)
CIE-LABlab(78.92, -29.37, 58.61)
CIE-LCHlch(78.92, 65.56, 116.62°)
OKLaboklab(80.82% -0.0847 0.1344)
OKLCHoklch(80.82% 0.159 122.2)
XYZxyz(41.6468, 54.7901, 15.7771)
Luminance0.5479 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD04F #704FD0
analogous
#D0B14F #AFD04F #6FD04F
triadic
#AFD04F #4FAFD0 #D04FAF
tetradic
#AFD04F #4FD0B1 #704FD0 #D04F6F
square
#AFD04F #4FD0B1 #704FD0 #D04F6F
split-complementary
#AFD04F #4F6FD0 #B14FD0
monochromatic
#6A8223 #91B230 #AFD04F #C5DD7F #DBEAB0

Accessibility & contrast

On white

1.76
#AFD04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#AFD04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD04F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD04F#FFFFFF#000000##000000
##AFD04F1.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC43F
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#B7C6B5
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afd04f;
/* rgb */ color: rgb(175, 208, 79);
/* oklch */ color: oklch(80.8% 0.159 122.2);
Tailwind
colors: {
  custom: {
    50: '#cade86',
    500: '#afd04f',
    950: '#000000',
  },
}
SCSS
$custom: #afd04f;
$custom-light: #cade86;
$custom-dark: #000000;
JSON
{
  "hex": "#afd04f",
  "rgb": {
    "r": 175,
    "g": 208,
    "b": 79
  },
  "hsl": {
    "h": 75.349,
    "s": 57.848,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8082,
    "c": 0.15888,
    "h": 122.2
  },
  "luminance": 0.5479
}

Semantic roles & 50–950 ramp

primary
#AFD04F
secondary
#4E3A89
accent
#47E16E
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD04F

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

Preview Lab → · Contrast checker → · Palette generator →

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