#AFD642#AFD642

#AFD642 is a very light, vivid yellow-green. Relative luminance 0.576; OKLCH L 82.1% C 0.176 H 123.2°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#AFD642
RGBrgb(175, 214, 66)
HSLhsl(76, 64%, 55%)
HSVhsv(76, 69%, 84%)
CMYKcmyk(18.2%, 0%, 69.2%, 16.1%)
CIE-LABlab(80.52, -33.05, 65.41)
CIE-LCHlch(80.52, 73.28, 116.80°)
OKLaboklab(82.08% -0.096 0.147)
OKLCHoklch(82.08% 0.176 123.2)
XYZxyz(42.7096, 57.6002, 14.0211)
Luminance0.5760 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD642 #6942D6
analogous
#D6B342 #AFD642 #65D642
triadic
#AFD642 #42AFD6 #D642AF
tetradic
#AFD642 #42D6B3 #6942D6 #D64265
square
#AFD642 #42D6B3 #6942D6 #D64265
split-complementary
#AFD642 #4265D6 #B342D6
monochromatic
#67821C #8FB427 #AFD642 #C4E174 #DAECA7

Accessibility & contrast

On white

1.68
#AFD642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.52
#AFD642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD642
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD642#FFFFFF#000000##000000
##AFD6421.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C92A
Deuteranopia (green-blind)
#DDC84E
Tritanopia (blue-blind)
#B8CBB9
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #afd642;
/* rgb */ color: rgb(175, 214, 66);
/* oklch */ color: oklch(82.1% 0.176 123.2);
Tailwind
colors: {
  custom: {
    50: '#cae27f',
    500: '#afd642',
    950: '#000000',
  },
}
SCSS
$custom: #afd642;
$custom-light: #cae27f;
$custom-dark: #000000;
JSON
{
  "hex": "#afd642",
  "rgb": {
    "r": 175,
    "g": 214,
    "b": 66
  },
  "hsl": {
    "h": 75.811,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.82076,
    "c": 0.17555,
    "h": 123.2
  },
  "luminance": 0.576
}

Semantic roles & 50–950 ramp

primary
#AFD642
secondary
#4A3488
accent
#40E76C
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#14150B
muted
#83847E

Preview Lab

Preview with #AFD642

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

Preview Lab → · Contrast checker → · Palette generator →

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