#5F7312#5F7312

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

Color values

HEX#5F7312
RGBrgb(95, 115, 18)
HSLhsl(72, 73%, 26%)
HSVhsv(72, 84%, 45%)
CMYKcmyk(17.4%, 0%, 84.3%, 54.9%)
CIE-LABlab(45.27, -20.75, 46.33)
CIE-LCHlch(45.27, 50.77, 114.12°)
OKLaboklab(52.12% -0.0616 0.101)
OKLCHoklch(52.12% 0.118 121.4)
XYZxyz(10.9594, 14.7380, 2.8395)
Luminance0.1474 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7312 #261273
analogous
#735612 #5F7312 #2E7312
triadic
#5F7312 #125F73 #73125F
tetradic
#5F7312 #127356 #261273 #73122E
square
#5F7312 #127356 #261273 #73122E
split-complementary
#5F7312 #122E73 #561273
monochromatic
#161A04 #333E0A #5F7312 #8BA81A #B6DD23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7312#FFFFFF#000000##FFFFFF
##5F73121.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)
#7B6C00
Deuteranopia (green-blind)
#786B1C
Tritanopia (blue-blind)
#656D62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f7312;
/* rgb */ color: rgb(95, 115, 18);
/* oklch */ color: oklch(52.1% 0.118 121.4);
Tailwind
colors: {
  custom: {
    50: '#909b5a',
    500: '#5f7312',
    950: '#000000',
  },
}
SCSS
$custom: #5f7312;
$custom-light: #909b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7312",
  "rgb": {
    "r": 95,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 72.371,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.52117,
    "c": 0.1183,
    "h": 121.4
  },
  "luminance": 0.14738
}

Semantic roles & 50–950 ramp

primary
#5F7312
secondary
#4F37AA
accent
#38F05E
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7312

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

Preview Lab → · Contrast checker → · Palette generator →

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