#AFEC78#AFEC78

#AFEC78 is a very light, vivid yellow-green. Relative luminance 0.705; OKLCH L 87.7% C 0.160 H 131.8°. Best body text is #000000 at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#AFEC78
RGBrgb(175, 236, 120)
HSLhsl(92, 75%, 70%)
HSVhsv(92, 49%, 93%)
CMYKcmyk(25.8%, 0%, 49.2%, 7.5%)
CIE-LABlab(87.22, -38.45, 49.77)
CIE-LCHlch(87.22, 62.89, 127.69°)
OKLaboklab(87.66% -0.1065 0.1192)
OKLCHoklch(87.66% 0.16 131.8)
XYZxyz(51.0641, 70.4596, 28.6753)
Luminance0.7046 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFEC78 #B578EC
analogous
#E9EC78 #AFEC78 #78EC7B
triadic
#AFEC78 #78AFEC #EC78AF
tetradic
#AFEC78 #78E9EC #B578EC #EC7B78
square
#AFEC78 #78E9EC #B578EC #EC7B78
split-complementary
#AFEC78 #7B78EC #EC78E9
monochromatic
#70CD1D #8FE442 #AFEC78 #CFF4AE #EFFBE3

Accessibility & contrast

On white

1.39
#AFEC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.09
#AFEC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFEC78
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFEC78#FFFFFF#000000##000000
##AFEC781.001.3915.0915.09
#FFFFFF1.391.0021.0021.00
#00000015.0921.001.001.00
##00000015.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE6E
Deuteranopia (green-blind)
#ECD97F
Tritanopia (blue-blind)
#B1E4D1
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #afec78;
/* rgb */ color: rgb(175, 236, 120);
/* oklch */ color: oklch(87.7% 0.160 131.8);
Tailwind
colors: {
  custom: {
    50: '#c9f2a1',
    500: '#afec78',
    950: '#000000',
  },
}
SCSS
$custom: #afec78;
$custom-light: #c9f2a1;
$custom-dark: #000000;
JSON
{
  "hex": "#afec78",
  "rgb": {
    "r": 175,
    "g": 236,
    "b": 120
  },
  "hsl": {
    "h": 91.552,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.87659,
    "c": 0.15987,
    "h": 131.8
  },
  "luminance": 0.70461
}

Semantic roles & 50–950 ramp

primary
#AFEC78
secondary
#8743C5
accent
#0ED778
background
#FEFFFC
surface
#FAFEF5
border
#D3D6CF
text
#13170F
muted
#838580

Preview Lab

Preview with #AFEC78

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

Preview Lab → · Contrast checker → · Palette generator →

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