#AFE278#AFE278

#AFE278 is a very light, vivid yellow-green. Relative luminance 0.649; OKLCH L 85.4% C 0.146 H 130.1°. Best body text is #000000 at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#AFE278
RGBrgb(175, 226, 120)
HSLhsl(89, 65%, 68%)
HSVhsv(89, 47%, 89%)
CMYKcmyk(22.6%, 0%, 46.9%, 11.4%)
CIE-LABlab(84.41, -33.91, 46.33)
CIE-LCHlch(84.41, 57.42, 126.20°)
OKLaboklab(85.39% -0.0939 0.1116)
OKLCHoklch(85.39% 0.146 130.1)
XYZxyz(48.2651, 64.8618, 27.7424)
Luminance0.6486 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE278 #AB78E2
analogous
#E2E078 #AFE278 #7AE278
triadic
#AFE278 #78AFE2 #E278AF
tetradic
#AFE278 #78E2E0 #AB78E2 #E2787A
square
#AFE278 #78E2E0 #AB78E2 #E2787A
split-complementary
#AFE278 #787AE2 #E078E2
monochromatic
#73B828 #91D746 #AFE278 #CDEDAA #EBF8DD

Accessibility & contrast

On white

1.50
#AFE278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.97
#AFE278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE278
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE278#FFFFFF#000000##000000
##AFE2781.001.5013.9713.97
#FFFFFF1.501.0021.0021.00
#00000013.9721.001.001.00
##00000013.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD56F
Deuteranopia (green-blind)
#E3D17E
Tritanopia (blue-blind)
#B2DAC9
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #afe278;
/* rgb */ color: rgb(175, 226, 120);
/* oklch */ color: oklch(85.4% 0.146 130.1);
Tailwind
colors: {
  custom: {
    50: '#c9eba1',
    500: '#afe278',
    950: '#000000',
  },
}
SCSS
$custom: #afe278;
$custom-light: #c9eba1;
$custom-dark: #000000;
JSON
{
  "hex": "#afe278",
  "rgb": {
    "r": 175,
    "g": 226,
    "b": 120
  },
  "hsl": {
    "h": 88.868,
    "s": 64.634,
    "l": 67.843
  },
  "oklch": {
    "l": 0.85388,
    "c": 0.14585,
    "h": 130.1
  },
  "luminance": 0.64863
}

Semantic roles & 50–950 ramp

primary
#AFE278
secondary
#7D46B9
accent
#19CC6F
background
#FEFEFC
surface
#FAFDF5
border
#D3D5CF
text
#13160F
muted
#838480

Preview Lab

Preview with #AFE278

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

Preview Lab → · Contrast checker → · Palette generator →

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