#AFD542#AFD542

#AFD542 is a light, vivid yellow-green. Relative luminance 0.571; OKLCH L 81.8% C 0.174 H 122.9°. Best body text is #000000 at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#AFD542
RGBrgb(175, 213, 66)
HSLhsl(76, 64%, 55%)
HSVhsv(76, 69%, 84%)
CMYKcmyk(17.8%, 0%, 69%, 16.5%)
CIE-LABlab(80.23, -32.58, 65.13)
CIE-LCHlch(80.23, 72.82, 116.58°)
OKLaboklab(81.85% -0.0947 0.1464)
OKLCHoklch(81.85% 0.174 122.9)
XYZxyz(42.4573, 57.0956, 13.9370)
Luminance0.5710 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD542 #6842D5
analogous
#D5B142 #AFD542 #66D542
triadic
#AFD542 #42AFD5 #D542AF
tetradic
#AFD542 #42D5B1 #6842D5 #D54266
square
#AFD542 #42D5B1 #6842D5 #D54266
split-complementary
#AFD542 #4266D5 #B142D5
monochromatic
#66801C #8EB228 #AFD542 #C4E074 #D9EBA6

Accessibility & contrast

On white

1.69
#AFD542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.42
#AFD542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD542
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD542#FFFFFF#000000##000000
##AFD5421.001.6912.4212.42
#FFFFFF1.691.0021.0021.00
#00000012.4221.001.001.00
##00000012.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C82A
Deuteranopia (green-blind)
#DCC74E
Tritanopia (blue-blind)
#B8CAB8
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd542;
/* rgb */ color: rgb(175, 213, 66);
/* oklch */ color: oklch(81.8% 0.174 122.9);
Tailwind
colors: {
  custom: {
    50: '#cae27f',
    500: '#afd542',
    950: '#000000',
  },
}
SCSS
$custom: #afd542;
$custom-light: #cae27f;
$custom-dark: #000000;
JSON
{
  "hex": "#afd542",
  "rgb": {
    "r": 175,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 75.51,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81848,
    "c": 0.17434,
    "h": 122.9
  },
  "luminance": 0.57096
}

Semantic roles & 50–950 ramp

primary
#AFD542
secondary
#493487
accent
#41E76C
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD542

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

Preview Lab → · Contrast checker → · Palette generator →

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