#AFD04E#AFD04E

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

Color values

HEX#AFD04E
RGBrgb(175, 208, 78)
HSLhsl(75, 58%, 56%)
HSVhsv(75, 63%, 82%)
CMYKcmyk(15.9%, 0%, 62.5%, 18.4%)
CIE-LABlab(78.91, -29.45, 59.02)
CIE-LCHlch(78.91, 65.96, 116.52°)
OKLaboklab(80.81% -0.085 0.1352)
OKLCHoklch(80.81% 0.16 122.2)
XYZxyz(41.6107, 54.7757, 15.5869)
Luminance0.5478 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD04E #6F4ED0
analogous
#D0B04E #AFD04E #6ED04E
triadic
#AFD04E #4EAFD0 #D04EAF
tetradic
#AFD04E #4ED0B0 #6F4ED0 #D04E6E
square
#AFD04E #4ED0B0 #6F4ED0 #D04E6E
split-complementary
#AFD04E #4E6ED0 #B04ED0
monochromatic
#698122 #91B22F #AFD04E #C5DD7E #DBEAAF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD04E#FFFFFF#000000##000000
##AFD04E1.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)
#DCC43E
Deuteranopia (green-blind)
#D7C357
Tritanopia (blue-blind)
#B7C6B5
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afd04e;
/* rgb */ color: rgb(175, 208, 78);
/* oklch */ color: oklch(80.8% 0.160 122.2);
Tailwind
colors: {
  custom: {
    50: '#cade85',
    500: '#afd04e',
    950: '#000000',
  },
}
SCSS
$custom: #afd04e;
$custom-light: #cade85;
$custom-dark: #000000;
JSON
{
  "hex": "#afd04e",
  "rgb": {
    "r": 175,
    "g": 208,
    "b": 78
  },
  "hsl": {
    "h": 75.231,
    "s": 58.036,
    "l": 56.078
  },
  "oklch": {
    "l": 0.8081,
    "c": 0.15966,
    "h": 122.2
  },
  "luminance": 0.54776
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFD04E

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

Preview Lab → · Contrast checker → · Palette generator →

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