#8FA042#8FA042

#8FA042 is a light, vivid yellow-green. Relative luminance 0.314; OKLCH L 67.3% C 0.121 H 118.4°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8FA042
RGBrgb(143, 160, 66)
HSLhsl(71, 42%, 44%)
HSVhsv(71, 59%, 63%)
CMYKcmyk(10.6%, 0%, 58.8%, 37.3%)
CIE-LABlab(62.82, -19.90, 45.97)
CIE-LCHlch(62.82, 50.09, 113.40°)
OKLaboklab(67.26% -0.0576 0.1066)
OKLCHoklch(67.26% 0.121 118.4)
XYZxyz(24.8822, 31.3748, 9.8983)
Luminance0.3137 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FA042 #5342A0
analogous
#A08242 #8FA042 #60A042
triadic
#8FA042 #428FA0 #A0428F
tetradic
#8FA042 #42A082 #5342A0 #A04260
square
#8FA042 #42A082 #5342A0 #A04260
split-complementary
#8FA042 #4260A0 #8242A0
monochromatic
#42491E #687530 #8FA042 #ADBE61 #C4D08D

Accessibility & contrast

On white

2.89
#8FA042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#8FA042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FA042
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FA042#FFFFFF#000000##000000
##8FA0421.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9838
Deuteranopia (green-blind)
#A89848
Tritanopia (blue-blind)
#97988C
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #8fa042;
/* rgb */ color: rgb(143, 160, 66);
/* oklch */ color: oklch(67.3% 0.121 118.4);
Tailwind
colors: {
  custom: {
    50: '#b2bc7a',
    500: '#8fa042',
    950: '#000000',
  },
}
SCSS
$custom: #8fa042;
$custom-light: #b2bc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#8fa042",
  "rgb": {
    "r": 143,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 70.851,
    "s": 41.593,
    "l": 44.314
  },
  "oklch": {
    "l": 0.67264,
    "c": 0.12112,
    "h": 118.4
  },
  "luminance": 0.31375
}

Semantic roles & 50–950 ramp

primary
#8FA042
secondary
#8D83BB
accent
#56D16D
background
#FBFBF7
surface
#F6F6EE
border
#D0D0C9
text
#111209
muted
#80817B

Preview Lab

Preview with #8FA042

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

Preview Lab → · Contrast checker → · Palette generator →

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