#AFD162#AFD162

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

Color values

HEX#AFD162
RGBrgb(175, 209, 98)
HSLhsl(78, 55%, 60%)
HSVhsv(78, 53%, 82%)
CMYKcmyk(16.3%, 0%, 53.1%, 18%)
CIE-LABlab(79.38, -28.24, 50.70)
CIE-LCHlch(79.38, 58.03, 119.12°)
OKLaboklab(81.25% -0.0798 0.1196)
OKLCHoklch(81.25% 0.144 123.7)
XYZxyz(42.6844, 55.5965, 20.0354)
Luminance0.5560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD162 #8462D1
analogous
#D1BB62 #AFD162 #78D162
triadic
#AFD162 #62AFD1 #D162AF
tetradic
#AFD162 #62D1BB #8462D1 #D16278
square
#AFD162 #62D1BB #8462D1 #D16278
split-complementary
#AFD162 #6278D1 #BB62D1
monochromatic
#708F2A #95BE38 #AFD162 #C7DF91 #DFEDC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFD162#FFFFFF#000000##000000
##AFD1621.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)
#DBC657
Deuteranopia (green-blind)
#D7C469
Tritanopia (blue-blind)
#B6C8B8
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #afd162;
/* rgb */ color: rgb(175, 209, 98);
/* oklch */ color: oklch(81.3% 0.144 123.7);
Tailwind
colors: {
  custom: {
    50: '#c9df92',
    500: '#afd162',
    950: '#000000',
  },
}
SCSS
$custom: #afd162;
$custom-light: #c9df92;
$custom-dark: #000000;
JSON
{
  "hex": "#afd162",
  "rgb": {
    "r": 175,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 78.378,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.81252,
    "c": 0.14373,
    "h": 123.7
  },
  "luminance": 0.55597
}

Semantic roles & 50–950 ramp

primary
#AFD162
secondary
#5C4295
accent
#23C254
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD162

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

Preview Lab → · Contrast checker → · Palette generator →

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