#AFD940#AFD940

#AFD940 is a very light, vivid yellow-green. Relative luminance 0.591; OKLCH L 82.7% C 0.180 H 123.8°. Best body text is #000000 at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#AFD940
RGBrgb(175, 217, 64)
HSLhsl(76, 67%, 55%)
HSVhsv(76, 71%, 85%)
CMYKcmyk(19.4%, 0%, 70.5%, 14.9%)
CIE-LABlab(81.35, -34.54, 66.97)
CIE-LCHlch(81.35, 75.36, 117.28°)
OKLaboklab(82.75% -0.1003 0.1499)
OKLCHoklch(82.75% 0.18 123.8)
XYZxyz(43.4179, 59.1095, 13.9714)
Luminance0.5911 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD940 #6A40D9
analogous
#D9B740 #AFD940 #62D940
triadic
#AFD940 #40AFD9 #D940AF
tetradic
#AFD940 #40D9B7 #6A40D9 #D94062
square
#AFD940 #40D9B7 #6A40D9 #D94062
split-complementary
#AFD940 #4062D9 #B740D9
monochromatic
#67841A #8FB724 #AFD940 #C4E373 #DAEDA6

Accessibility & contrast

On white

1.64
#AFD940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.82
#AFD940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD940
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD940#FFFFFF#000000##000000
##AFD9401.001.6412.8212.82
#FFFFFF1.641.0021.0021.00
#00000012.8221.001.001.00
##00000012.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB25
Deuteranopia (green-blind)
#E0CA4D
Tritanopia (blue-blind)
#B7CEBB
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd940;
/* rgb */ color: rgb(175, 217, 64);
/* oklch */ color: oklch(82.7% 0.180 123.8);
Tailwind
colors: {
  custom: {
    50: '#cbe47e',
    500: '#afd940',
    950: '#000000',
  },
}
SCSS
$custom: #afd940;
$custom-light: #cbe47e;
$custom-dark: #000000;
JSON
{
  "hex": "#afd940",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 76.471,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.82747,
    "c": 0.18039,
    "h": 123.8
  },
  "luminance": 0.5911
}

Semantic roles & 50–950 ramp

primary
#AFD940
secondary
#4B328B
accent
#3EEA6D
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD940

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

Preview Lab → · Contrast checker → · Palette generator →

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