#AFD242#AFD242

#AFD242 is a light, vivid yellow-green. Relative luminance 0.556; OKLCH L 81.2% C 0.171 H 122.2°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#AFD242
RGBrgb(175, 210, 66)
HSLhsl(75, 62%, 54%)
HSVhsv(75, 69%, 82%)
CMYKcmyk(16.7%, 0%, 68.6%, 17.6%)
CIE-LABlab(79.39, -31.19, 64.27)
CIE-LCHlch(79.39, 71.44, 115.89°)
OKLaboklab(81.16% -0.0909 0.1446)
OKLCHoklch(81.16% 0.171 122.2)
XYZxyz(41.7097, 55.6004, 13.6878)
Luminance0.5560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD242 #6542D2
analogous
#D2AD42 #AFD242 #67D242
triadic
#AFD242 #42AFD2 #D242AF
tetradic
#AFD242 #42D2AD #6542D2 #D24267
square
#AFD242 #42D2AD #6542D2 #D24267
split-complementary
#AFD242 #4267D2 #AD42D2
monochromatic
#657C1E #8DAD29 #AFD242 #C4DE73 #D9EAA5

Accessibility & contrast

On white

1.73
#AFD242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#AFD242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD242
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD242#FFFFFF#000000##000000
##AFD2421.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC52B
Deuteranopia (green-blind)
#DAC54E
Tritanopia (blue-blind)
#B8C7B5
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd242;
/* rgb */ color: rgb(175, 210, 66);
/* oklch */ color: oklch(81.2% 0.171 122.2);
Tailwind
colors: {
  custom: {
    50: '#cadf7f',
    500: '#afd242',
    950: '#000000',
  },
}
SCSS
$custom: #afd242;
$custom-light: #cadf7f;
$custom-dark: #000000;
JSON
{
  "hex": "#afd242",
  "rgb": {
    "r": 175,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 74.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81164,
    "c": 0.17076,
    "h": 122.2
  },
  "luminance": 0.556
}

Semantic roles & 50–950 ramp

primary
#AFD242
secondary
#483484
accent
#43E56A
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD242

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

Preview Lab → · Contrast checker → · Palette generator →

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