#5F7310#5F7310

#5F7310 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#5F7310
RGBrgb(95, 115, 16)
HSLhsl(72, 76%, 26%)
HSVhsv(72, 86%, 45%)
CMYKcmyk(17.4%, 0%, 86.1%, 54.9%)
CIE-LABlab(45.26, -20.83, 46.90)
CIE-LCHlch(45.26, 51.31, 113.94°)
OKLaboklab(52.11% -0.0619 0.1019)
OKLCHoklch(52.11% 0.119 121.3)
XYZxyz(10.9438, 14.7318, 2.7571)
Luminance0.1473 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7310 #241073
analogous
#735510 #5F7310 #2D7310
triadic
#5F7310 #105F73 #73105F
tetradic
#5F7310 #107355 #241073 #73102D
square
#5F7310 #107355 #241073 #73102D
split-complementary
#5F7310 #102D73 #551073
monochromatic
#161B04 #333D09 #5F7310 #8BA917 #B8DE1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7310#FFFFFF#000000##FFFFFF
##5F73101.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)
#786B1B
Tritanopia (blue-blind)
#656C61
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f7310;
/* rgb */ color: rgb(95, 115, 16);
/* oklch */ color: oklch(52.1% 0.119 121.3);
Tailwind
colors: {
  custom: {
    50: '#909b5a',
    500: '#5f7310',
    950: '#000000',
  },
}
SCSS
$custom: #5f7310;
$custom-light: #909b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7310",
  "rgb": {
    "r": 95,
    "g": 115,
    "b": 16
  },
  "hsl": {
    "h": 72.121,
    "s": 75.573,
    "l": 25.686
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.11921,
    "h": 121.3
  },
  "luminance": 0.14732
}

Semantic roles & 50–950 ramp

primary
#5F7310
secondary
#4C34AA
accent
#36F25C
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7310

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

Preview Lab → · Contrast checker → · Palette generator →

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