#AFD862#AFD862

#AFD862 is a very light, vivid yellow-green. Relative luminance 0.591; OKLCH L 82.8% C 0.153 H 125.6°. Best body text is #000000 at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#AFD862
RGBrgb(175, 216, 98)
HSLhsl(81, 60%, 62%)
HSVhsv(81, 55%, 85%)
CMYKcmyk(19%, 0%, 54.6%, 15.3%)
CIE-LABlab(81.35, -31.54, 52.99)
CIE-LCHlch(81.35, 61.67, 120.76°)
OKLaboklab(82.84% -0.089 0.1245)
OKLCHoklch(82.84% 0.153 125.6)
XYZxyz(44.4397, 59.1071, 20.6205)
Luminance0.5911 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD862 #8B62D8
analogous
#D8C662 #AFD862 #74D862
triadic
#AFD862 #62AFD8 #D862AF
tetradic
#AFD862 #62D8C6 #8B62D8 #D86274
square
#AFD862 #62D8C6 #8B62D8 #D86274
split-complementary
#AFD862 #6274D8 #C662D8
monochromatic
#719926 #96CA32 #AFD862 #C8E493 #E1F0C4

Accessibility & contrast

On white

1.64
#AFD862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.82
#AFD862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD862
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD862#FFFFFF#000000##000000
##AFD8621.001.6412.8212.82
#FFFFFF1.641.0021.0021.00
#00000012.8221.001.001.00
##00000012.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CC56
Deuteranopia (green-blind)
#DDCA6A
Tritanopia (blue-blind)
#B5CFBE
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #afd862;
/* rgb */ color: rgb(175, 216, 98);
/* oklch */ color: oklch(82.8% 0.153 125.6);
Tailwind
colors: {
  custom: {
    50: '#c9e492',
    500: '#afd862',
    950: '#000000',
  },
}
SCSS
$custom: #afd862;
$custom-light: #c9e492;
$custom-dark: #000000;
JSON
{
  "hex": "#afd862",
  "rgb": {
    "r": 175,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 80.847,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.82836,
    "c": 0.15305,
    "h": 125.6
  },
  "luminance": 0.59108
}

Semantic roles & 50–950 ramp

primary
#AFD862
secondary
#61409E
accent
#1EC859
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD862

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

Preview Lab → · Contrast checker → · Palette generator →

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