#5F8730#5F8730

#5F8730 is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.5% C 0.125 H 130.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5F8730
RGBrgb(95, 135, 48)
HSLhsl(88, 48%, 36%)
HSVhsv(88, 64%, 53%)
CMYKcmyk(29.6%, 0%, 64.4%, 47.1%)
CIE-LABlab(51.81, -28.74, 41.15)
CIE-LCHlch(51.81, 50.19, 124.93°)
OKLaboklab(57.48% -0.0809 0.0949)
OKLCHoklch(57.48% 0.125 130.4)
XYZxyz(13.9167, 19.9738, 5.9178)
Luminance0.1997 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8730 #583087
analogous
#878330 #5F8730 #338730
triadic
#5F8730 #305F87 #87305F
tetradic
#5F8730 #308783 #583087 #873033
square
#5F8730 #308783 #583087 #873033
split-complementary
#5F8730 #303387 #833087
monochromatic
#1F2D10 #3F5A20 #5F8730 #7FB440 #9DC968

Accessibility & contrast

On white

4.20
#5F8730 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5F8730 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8730
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8730#FFFFFF#000000##000000
##5F87301.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D26
Deuteranopia (green-blind)
#877B37
Tritanopia (blue-blind)
#618175
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f8730;
/* rgb */ color: rgb(95, 135, 48);
/* oklch */ color: oklch(57.5% 0.125 130.4);
Tailwind
colors: {
  custom: {
    50: '#8faa6c',
    500: '#5f8730',
    950: '#000000',
  },
}
SCSS
$custom: #5f8730;
$custom-light: #8faa6c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8730",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 48
  },
  "hsl": {
    "h": 87.586,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57477,
    "c": 0.12469,
    "h": 130.4
  },
  "luminance": 0.19974
}

Semantic roles & 50–950 ramp

primary
#5F8730
secondary
#8662B1
accent
#51D78E
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8730

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

Preview Lab → · Contrast checker → · Palette generator →

#5F8730 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva