#AFD42D#AFD42D

#AFD42D is a light, vivid yellow-green. Relative luminance 0.564; OKLCH L 81.5% C 0.185 H 122.0°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#AFD42D
RGBrgb(175, 212, 45)
HSLhsl(73, 66%, 50%)
HSVhsv(73, 79%, 83%)
CMYKcmyk(17.5%, 0%, 78.8%, 16.9%)
CIE-LABlab(79.84, -33.16, 71.61)
CIE-LCHlch(79.84, 78.92, 114.85°)
OKLaboklab(81.49% -0.098 0.1567)
OKLCHoklch(81.49% 0.185 122)
XYZxyz(41.6970, 56.3903, 11.1698)
Luminance0.5639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD42D #522DD4
analogous
#D4A52D #AFD42D #5CD42D
triadic
#AFD42D #2DAFD4 #D42DAF
tetradic
#AFD42D #2DD4A5 #522DD4 #D42D5C
square
#AFD42D #2DD4A5 #522DD4 #D42D5C
split-complementary
#AFD42D #2D5CD4 #A52DD4
monochromatic
#5C7017 #86A321 #AFD42D #C2DE60 #D6E993

Accessibility & contrast

On white

1.71
#AFD42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#AFD42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD42D
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD42D#FFFFFF#000000##000000
##AFD42D1.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C700
Deuteranopia (green-blind)
#DCC63E
Tritanopia (blue-blind)
#B9C9B6
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #afd42d;
/* rgb */ color: rgb(175, 212, 45);
/* oklch */ color: oklch(81.5% 0.185 122.0);
Tailwind
colors: {
  custom: {
    50: '#cbe175',
    500: '#afd42d',
    950: '#000000',
  },
}
SCSS
$custom: #afd42d;
$custom-light: #cbe175;
$custom-dark: #000000;
JSON
{
  "hex": "#afd42d",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 45
  },
  "hsl": {
    "h": 73.293,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.8149,
    "c": 0.1848,
    "h": 122
  },
  "luminance": 0.5639
}

Semantic roles & 50–950 ramp

primary
#AFD42D
secondary
#3D2C79
accent
#3FE965
background
#FEFEFB
surface
#FBFCF1
border
#D4D5CB
text
#141509
muted
#83847D

Preview Lab

Preview with #AFD42D

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

Preview Lab → · Contrast checker → · Palette generator →

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