#8FAF40#8FAF40

#8FAF40 is a light, vivid yellow-green. Relative luminance 0.369; OKLCH L 70.8% C 0.142 H 123.7°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#8FAF40
RGBrgb(143, 175, 64)
HSLhsl(77, 46%, 47%)
HSVhsv(77, 63%, 69%)
CMYKcmyk(18.3%, 0%, 63.4%, 31.4%)
CIE-LABlab(67.18, -27.50, 51.66)
CIE-LCHlch(67.18, 58.52, 118.02°)
OKLaboklab(70.76% -0.079 0.1184)
OKLCHoklch(70.76% 0.142 123.7)
XYZxyz(27.5833, 36.8696, 10.5129)
Luminance0.3687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FAF40 #6040AF
analogous
#AF9840 #8FAF40 #58AF40
triadic
#8FAF40 #408FAF #AF408F
tetradic
#8FAF40 #40AF98 #6040AF #AF4058
square
#8FAF40 #40AF98 #6040AF #AF4058
split-complementary
#8FAF40 #4058AF #9840AF
monochromatic
#46551F #6A8230 #8FAF40 #ABC765 #C3D792

Accessibility & contrast

On white

2.51
#8FAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#8FAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FAF40
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FAF40#FFFFFF#000000##000000
##8FAF401.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A432
Deuteranopia (green-blind)
#B4A348
Tritanopia (blue-blind)
#96A798
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #8faf40;
/* rgb */ color: rgb(143, 175, 64);
/* oklch */ color: oklch(70.8% 0.142 123.7);
Tailwind
colors: {
  custom: {
    50: '#b2c77a',
    500: '#8faf40',
    950: '#000000',
  },
}
SCSS
$custom: #8faf40;
$custom-light: #b2c77a;
$custom-dark: #000000;
JSON
{
  "hex": "#8faf40",
  "rgb": {
    "r": 143,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 77.297,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70764,
    "c": 0.14231,
    "h": 123.7
  },
  "luminance": 0.3687
}

Semantic roles & 50–950 ramp

primary
#8FAF40
secondary
#9988C3
accent
#52D678
background
#FBFCF7
surface
#F6F8EE
border
#D0D1C9
text
#111309
muted
#80827B

Preview Lab

Preview with #8FAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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