#5F7311#5F7311

#5F7311 is a mid, moderate yellow-green. Relative luminance 0.147; OKLCH L 52.1% C 0.119 H 121.3°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5F7311
RGBrgb(95, 115, 17)
HSLhsl(72, 74%, 26%)
HSVhsv(72, 85%, 45%)
CMYKcmyk(17.4%, 0%, 85.2%, 54.9%)
CIE-LABlab(45.27, -20.79, 46.62)
CIE-LCHlch(45.27, 51.05, 114.03°)
OKLaboklab(52.11% -0.0618 0.1014)
OKLCHoklch(52.11% 0.119 121.3)
XYZxyz(10.9514, 14.7348, 2.7974)
Luminance0.1474 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7311 #251173
analogous
#735611 #5F7311 #2E7311
triadic
#5F7311 #115F73 #73115F
tetradic
#5F7311 #117356 #251173 #73112E
square
#5F7311 #117356 #251173 #73112E
split-complementary
#5F7311 #112E73 #561173
monochromatic
#161B04 #333E09 #5F7311 #8BA819 #B7DE21

Accessibility & contrast

On white

5.32
#5F7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5F7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7311
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7311#FFFFFF#000000##FFFFFF
##5F73111.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6B00
Deuteranopia (green-blind)
#786B1C
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f7311;
/* rgb */ color: rgb(95, 115, 17);
/* oklch */ color: oklch(52.1% 0.119 121.3);
Tailwind
colors: {
  custom: {
    50: '#909b5a',
    500: '#5f7311',
    950: '#000000',
  },
}
SCSS
$custom: #5f7311;
$custom-light: #909b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7311",
  "rgb": {
    "r": 95,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 72.245,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.52112,
    "c": 0.11876,
    "h": 121.3
  },
  "luminance": 0.14735
}

Semantic roles & 50–950 ramp

primary
#5F7311
secondary
#4D36AA
accent
#37F15D
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7311

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

Preview Lab → · Contrast checker → · Palette generator →

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