#5F8310#5F8310

#5F8310 is a mid, vivid yellow-green. Relative luminance 0.187; OKLCH L 56.2% C 0.139 H 126.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5F8310
RGBrgb(95, 131, 16)
HSLhsl(79, 78%, 29%)
HSVhsv(79, 88%, 51%)
CMYKcmyk(27.5%, 0%, 87.8%, 48.6%)
CIE-LABlab(50.34, -28.79, 51.28)
CIE-LCHlch(50.34, 58.81, 119.31°)
OKLaboklab(56.22% -0.0835 0.1112)
OKLCHoklch(56.22% 0.139 126.9)
XYZxyz(12.9292, 18.7026, 3.4189)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8310 #341083
analogous
#836E10 #5F8310 #258310
triadic
#5F8310 #105F83 #83105F
tetradic
#5F8310 #10836E #341083 #831025
square
#5F8310 #10836E #341083 #831025
split-complementary
#5F8310 #102583 #6E1083
monochromatic
#141B03 #374C09 #5F8310 #87BA17 #AAE529

Accessibility & contrast

On white

4.43
#5F8310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5F8310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8310
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8310#FFFFFF#000000##000000
##5F83101.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#637C6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5f8310;
/* rgb */ color: rgb(95, 131, 16);
/* oklch */ color: oklch(56.2% 0.139 126.9);
Tailwind
colors: {
  custom: {
    50: '#90a75c',
    500: '#5f8310',
    950: '#000000',
  },
}
SCSS
$custom: #5f8310;
$custom-light: #90a75c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8310",
  "rgb": {
    "r": 95,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 78.783,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56217,
    "c": 0.13911,
    "h": 126.9
  },
  "luminance": 0.18703
}

Semantic roles & 50–950 ramp

primary
#5F8310
secondary
#5F36B9
accent
#33F570
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8310

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

Preview Lab → · Contrast checker → · Palette generator →

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