#AFE978#AFE978

#AFE978 is a very light, vivid yellow-green. Relative luminance 0.687; OKLCH L 87.0% C 0.156 H 131.3°. Best body text is #000000 at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#AFE978
RGBrgb(175, 233, 120)
HSLhsl(91, 72%, 69%)
HSVhsv(91, 48%, 91%)
CMYKcmyk(24.9%, 0%, 48.5%, 8.6%)
CIE-LABlab(86.38, -37.10, 48.74)
CIE-LCHlch(86.38, 61.26, 127.28°)
OKLaboklab(86.98% -0.1028 0.1169)
OKLCHoklch(86.98% 0.156 131.3)
XYZxyz(50.2076, 68.7466, 28.3898)
Luminance0.6875 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE978 #B278E9
analogous
#E8E978 #AFE978 #78E97A
triadic
#AFE978 #78AFE9 #E978AF
tetradic
#AFE978 #78E8E9 #B278E9 #E97A78
square
#AFE978 #78E8E9 #B278E9 #E97A78
split-complementary
#AFE978 #7A78E9 #E978E8
monochromatic
#71C620 #90E043 #AFE978 #CEF2AD #EDFAE1

Accessibility & contrast

On white

1.42
#AFE978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.75
#AFE978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE978
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE978#FFFFFF#000000##000000
##AFE9781.001.4214.7514.75
#FFFFFF1.421.0021.0021.00
#00000014.7521.001.001.00
##00000014.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DB6E
Deuteranopia (green-blind)
#E9D77F
Tritanopia (blue-blind)
#B1E1CF
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #afe978;
/* rgb */ color: rgb(175, 233, 120);
/* oklch */ color: oklch(87.0% 0.156 131.3);
Tailwind
colors: {
  custom: {
    50: '#c9f0a1',
    500: '#afe978',
    950: '#000000',
  },
}
SCSS
$custom: #afe978;
$custom-light: #c9f0a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afe978",
  "rgb": {
    "r": 175,
    "g": 233,
    "b": 120
  },
  "hsl": {
    "h": 90.796,
    "s": 71.975,
    "l": 69.216
  },
  "oklch": {
    "l": 0.86976,
    "c": 0.15569,
    "h": 131.3
  },
  "luminance": 0.68748
}

Semantic roles & 50–950 ramp

primary
#AFE978
secondary
#8444C1
accent
#11D475
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13160F
muted
#838580

Preview Lab

Preview with #AFE978

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

Preview Lab → · Contrast checker → · Palette generator →

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