#AFD962#AFD962

#AFD962 is a very light, vivid yellow-green. Relative luminance 0.596; OKLCH L 83.1% C 0.154 H 125.8°. Best body text is #000000 at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#AFD962
RGBrgb(175, 217, 98)
HSLhsl(81, 61%, 62%)
HSVhsv(81, 55%, 85%)
CMYKcmyk(19.4%, 0%, 54.8%, 14.9%)
CIE-LABlab(81.63, -32.01, 53.32)
CIE-LCHlch(81.63, 62.19, 120.98°)
OKLaboklab(83.06% -0.0903 0.1252)
OKLCHoklch(83.06% 0.154 125.8)
XYZxyz(44.6967, 59.6210, 20.7061)
Luminance0.5962 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD962 #8C62D9
analogous
#D9C762 #AFD962 #74D962
triadic
#AFD962 #62AFD9 #D962AF
tetradic
#AFD962 #62D9C7 #8C62D9 #D96274
square
#AFD962 #62D9C7 #8C62D9 #D96274
split-complementary
#AFD962 #6274D9 #C762D9
monochromatic
#729B26 #96CC31 #AFD962 #C8E593 #E1F1C5

Accessibility & contrast

On white

1.62
#AFD962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.92
#AFD962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD962
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD962#FFFFFF#000000##000000
##AFD9621.001.6212.9212.92
#FFFFFF1.621.0021.0021.00
#00000012.9221.001.001.00
##00000012.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CC56
Deuteranopia (green-blind)
#DECA6A
Tritanopia (blue-blind)
#B5D0BF
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #afd962;
/* rgb */ color: rgb(175, 217, 98);
/* oklch */ color: oklch(83.1% 0.154 125.8);
Tailwind
colors: {
  custom: {
    50: '#c9e592',
    500: '#afd962',
    950: '#000000',
  },
}
SCSS
$custom: #afd962;
$custom-light: #c9e592;
$custom-dark: #000000;
JSON
{
  "hex": "#afd962",
  "rgb": {
    "r": 175,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 81.176,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.83063,
    "c": 0.15438,
    "h": 125.8
  },
  "luminance": 0.59622
}

Semantic roles & 50–950 ramp

primary
#AFD962
secondary
#62409F
accent
#1DC959
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150D
muted
#83847F

Preview Lab

Preview with #AFD962

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

Preview Lab → · Contrast checker → · Palette generator →

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