#AFD342#AFD342

#AFD342 is a light, vivid yellow-green. Relative luminance 0.561; OKLCH L 81.4% C 0.172 H 122.4°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#AFD342
RGBrgb(175, 211, 66)
HSLhsl(75, 62%, 54%)
HSVhsv(75, 69%, 83%)
CMYKcmyk(17.1%, 0%, 68.7%, 17.3%)
CIE-LABlab(79.67, -31.65, 64.56)
CIE-LCHlch(79.67, 71.90, 116.12°)
OKLaboklab(81.39% -0.0922 0.1452)
OKLCHoklch(81.39% 0.172 122.4)
XYZxyz(41.9574, 56.0957, 13.7703)
Luminance0.5610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD342 #6642D3
analogous
#D3AF42 #AFD342 #66D342
triadic
#AFD342 #42AFD3 #D342AF
tetradic
#AFD342 #42D3AF #6642D3 #D34266
square
#AFD342 #42D3AF #6642D3 #D34266
split-complementary
#AFD342 #4266D3 #AF42D3
monochromatic
#667D1D #8EAF29 #AFD342 #C4DF74 #D9EAA5

Accessibility & contrast

On white

1.72
#AFD342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#AFD342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD342
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD342#FFFFFF#000000##000000
##AFD3421.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC62B
Deuteranopia (green-blind)
#DBC54E
Tritanopia (blue-blind)
#B8C8B6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd342;
/* rgb */ color: rgb(175, 211, 66);
/* oklch */ color: oklch(81.4% 0.172 122.4);
Tailwind
colors: {
  custom: {
    50: '#cae07f',
    500: '#afd342',
    950: '#000000',
  },
}
SCSS
$custom: #afd342;
$custom-light: #cae07f;
$custom-dark: #000000;
JSON
{
  "hex": "#afd342",
  "rgb": {
    "r": 175,
    "g": 211,
    "b": 66
  },
  "hsl": {
    "h": 74.897,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81391,
    "c": 0.17195,
    "h": 122.4
  },
  "luminance": 0.56096
}

Semantic roles & 50–950 ramp

primary
#AFD342
secondary
#483485
accent
#42E56B
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD342

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

Preview Lab → · Contrast checker → · Palette generator →

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