#AFD040#AFD040

#AFD040 is a light, vivid yellow-green. Relative luminance 0.546; OKLCH L 80.7% C 0.170 H 121.6°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#AFD040
RGBrgb(175, 208, 64)
HSLhsl(74, 61%, 53%)
HSVhsv(74, 69%, 82%)
CMYKcmyk(15.9%, 0%, 69.2%, 18.4%)
CIE-LABlab(78.81, -30.37, 64.43)
CIE-LCHlch(78.81, 71.23, 115.24°)
OKLaboklab(80.69% -0.0888 0.1446)
OKLCHoklch(80.69% 0.17 121.6)
XYZxyz(41.1611, 54.5959, 13.2191)
Luminance0.5460 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD040 #6140D0
analogous
#D0A940 #AFD040 #67D040
triadic
#AFD040 #40AFD0 #D040AF
tetradic
#AFD040 #40D0A9 #6140D0 #D04067
square
#AFD040 #40D0A9 #6140D0 #D04067
split-complementary
#AFD040 #4067D0 #A940D0
monochromatic
#63781E #8CA92A #AFD040 #C4DC71 #D8E8A2

Accessibility & contrast

On white

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

On black

11.92
#AFD040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD040
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD040#FFFFFF#000000##000000
##AFD0401.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC429
Deuteranopia (green-blind)
#D8C34C
Tritanopia (blue-blind)
#B8C5B4
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #afd040;
/* rgb */ color: rgb(175, 208, 64);
/* oklch */ color: oklch(80.7% 0.170 121.6);
Tailwind
colors: {
  custom: {
    50: '#cade7d',
    500: '#afd040',
    950: '#000000',
  },
}
SCSS
$custom: #afd040;
$custom-light: #cade7d;
$custom-dark: #000000;
JSON
{
  "hex": "#afd040",
  "rgb": {
    "r": 175,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 73.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.80693,
    "c": 0.16969,
    "h": 121.6
  },
  "luminance": 0.54596
}

Semantic roles & 50–950 ramp

primary
#AFD040
secondary
#453480
accent
#44E469
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #AFD040

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

Preview Lab → · Contrast checker → · Palette generator →

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