#8FAF28#8FAF28

#8FAF28 is a light, vivid yellow-green. Relative luminance 0.367; OKLCH L 70.6% C 0.158 H 122.5°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#8FAF28
RGBrgb(143, 175, 40)
HSLhsl(74, 63%, 42%)
HSVhsv(74, 77%, 69%)
CMYKcmyk(18.3%, 0%, 77.1%, 31.4%)
CIE-LABlab(67.02, -28.98, 60.58)
CIE-LCHlch(67.02, 67.15, 115.56°)
OKLaboklab(70.58% -0.0852 0.1335)
OKLCHoklch(70.58% 0.158 122.5)
XYZxyz(27.0411, 36.6527, 7.6572)
Luminance0.3665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FAF28 #4828AF
analogous
#AF8C28 #8FAF28 #4CAF28
triadic
#8FAF28 #288FAF #AF288F
tetradic
#8FAF28 #28AF8C #4828AF #AF284C
square
#8FAF28 #28AF8C #4828AF #AF284C
split-complementary
#8FAF28 #284CAF #8C28AF
monochromatic
#3E4B11 #667D1D #8FAF28 #B1D441 #C5DF73

Accessibility & contrast

On white

2.52
#8FAF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#8FAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FAF28
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FAF28#FFFFFF#000000##000000
##8FAF281.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA402
Deuteranopia (green-blind)
#B6A335
Tritanopia (blue-blind)
#97A696
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #8faf28;
/* rgb */ color: rgb(143, 175, 40);
/* oklch */ color: oklch(70.6% 0.158 122.5);
Tailwind
colors: {
  custom: {
    50: '#b3c76d',
    500: '#8faf28',
    950: '#000000',
  },
}
SCSS
$custom: #8faf28;
$custom-light: #b3c76d;
$custom-dark: #000000;
JSON
{
  "hex": "#8faf28",
  "rgb": {
    "r": 143,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 74.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.7058,
    "c": 0.15832,
    "h": 122.5
  },
  "luminance": 0.36653
}

Semantic roles & 50–950 ramp

primary
#8FAF28
secondary
#826DC6
accent
#42E669
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#111308
muted
#80827B

Preview Lab

Preview with #8FAF28

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

Preview Lab → · Contrast checker → · Palette generator →

#8FAF28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva