#AFE962#AFE962

#AFE962 is a very light, vivid yellow-green. Relative luminance 0.683; OKLCH L 86.7% C 0.175 H 129.0°. Best body text is #000000 at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#AFE962
RGBrgb(175, 233, 98)
HSLhsl(86, 75%, 65%)
HSVhsv(86, 58%, 91%)
CMYKcmyk(24.9%, 0%, 57.9%, 8.6%)
CIE-LABlab(86.14, -39.29, 58.49)
CIE-LCHlch(86.14, 70.46, 123.89°)
OKLaboklab(86.71% -0.1105 0.1363)
OKLCHoklch(86.71% 0.175 129)
XYZxyz(49.0224, 68.2726, 22.1480)
Luminance0.6827 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE962 #9C62E9
analogous
#E9E062 #AFE962 #6BE962
triadic
#AFE962 #62AFE9 #E962AF
tetradic
#AFE962 #62E9E0 #9C62E9 #E9626B
square
#AFE962 #62E9E0 #9C62E9 #E9626B
split-complementary
#AFE962 #626BE9 #E062E9
monochromatic
#73B71A #94E12C #AFE962 #CAF198 #E6F8CD

Accessibility & contrast

On white

1.43
#AFE962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.65
#AFE962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE962
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE962#FFFFFF#000000##000000
##AFE9621.001.4314.6514.65
#FFFFFF1.431.0021.0021.00
#00000014.6521.001.001.00
##00000014.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DA54
Deuteranopia (green-blind)
#EBD66B
Tritanopia (blue-blind)
#B4E0CC
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #afe962;
/* rgb */ color: rgb(175, 233, 98);
/* oklch */ color: oklch(86.7% 0.175 129.0);
Tailwind
colors: {
  custom: {
    50: '#caf093',
    500: '#afe962',
    950: '#000000',
  },
}
SCSS
$custom: #afe962;
$custom-light: #caf093;
$custom-dark: #000000;
JSON
{
  "hex": "#afe962",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 98
  },
  "hsl": {
    "h": 85.778,
    "s": 75.419,
    "l": 64.902
  },
  "oklch": {
    "l": 0.86709,
    "c": 0.17549,
    "h": 129
  },
  "luminance": 0.68274
}

Semantic roles & 50–950 ramp

primary
#AFE962
secondary
#6F38B7
accent
#0ED865
background
#FEFFFC
surface
#FBFEF4
border
#D4D6CE
text
#14160D
muted
#83857F

Preview Lab

Preview with #AFE962

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

Preview Lab → · Contrast checker → · Palette generator →

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