#AFD462#AFD462

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

Color values

HEX#AFD462
RGBrgb(175, 212, 98)
HSLhsl(79, 57%, 61%)
HSVhsv(79, 54%, 83%)
CMYKcmyk(17.5%, 0%, 53.8%, 16.9%)
CIE-LABlab(80.23, -29.66, 51.68)
CIE-LCHlch(80.23, 59.59, 119.85°)
OKLaboklab(81.93% -0.0837 0.1217)
OKLCHoklch(81.93% 0.148 124.5)
XYZxyz(43.4274, 57.0824, 20.2830)
Luminance0.5708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD462 #8762D4
analogous
#D4C062 #AFD462 #76D462
triadic
#AFD462 #62AFD4 #D462AF
tetradic
#AFD462 #62D4C0 #8762D4 #D46276
square
#AFD462 #62D4C0 #8762D4 #D46276
split-complementary
#AFD462 #6276D4 #C062D4
monochromatic
#719328 #95C335 #AFD462 #C7E192 #E0EEC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD462#FFFFFF#000000##000000
##AFD4621.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)
#DEC857
Deuteranopia (green-blind)
#D9C769
Tritanopia (blue-blind)
#B6CBBB
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd462;
/* rgb */ color: rgb(175, 212, 98);
/* oklch */ color: oklch(81.9% 0.148 124.5);
Tailwind
colors: {
  custom: {
    50: '#c9e192',
    500: '#afd462',
    950: '#000000',
  },
}
SCSS
$custom: #afd462;
$custom-light: #c9e192;
$custom-dark: #000000;
JSON
{
  "hex": "#afd462",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 98
  },
  "hsl": {
    "h": 79.474,
    "s": 57,
    "l": 60.784
  },
  "oklch": {
    "l": 0.8193,
    "c": 0.14772,
    "h": 124.5
  },
  "luminance": 0.57083
}

Semantic roles & 50–950 ramp

primary
#AFD462
secondary
#5E4299
accent
#21C556
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD462

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

Preview Lab → · Contrast checker → · Palette generator →

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