#5F7313#5F7313

#5F7313 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#5F7313
RGBrgb(95, 115, 19)
HSLhsl(73, 72%, 26%)
HSVhsv(73, 83%, 45%)
CMYKcmyk(17.4%, 0%, 83.5%, 54.9%)
CIE-LABlab(45.28, -20.70, 46.04)
CIE-LCHlch(45.28, 50.48, 114.22°)
OKLaboklab(52.12% -0.0614 0.1005)
OKLCHoklch(52.12% 0.118 121.4)
XYZxyz(10.9678, 14.7414, 2.8835)
Luminance0.1474 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7313 #271373
analogous
#735713 #5F7313 #2F7313
triadic
#5F7313 #135F73 #73135F
tetradic
#5F7313 #137357 #271373 #73132F
square
#5F7313 #137357 #271373 #73132F
split-complementary
#5F7313 #132F73 #571373
monochromatic
#161A04 #343E0A #5F7313 #8AA81C #B5DB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7313#FFFFFF#000000##FFFFFF
##5F73131.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)
#786B1D
Tritanopia (blue-blind)
#656D62
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f7313;
/* rgb */ color: rgb(95, 115, 19);
/* oklch */ color: oklch(52.1% 0.118 121.4);
Tailwind
colors: {
  custom: {
    50: '#909b5b',
    500: '#5f7313',
    950: '#000000',
  },
}
SCSS
$custom: #5f7313;
$custom-light: #909b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7313",
  "rgb": {
    "r": 95,
    "g": 115,
    "b": 19
  },
  "hsl": {
    "h": 72.5,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.52122,
    "c": 0.11781,
    "h": 121.4
  },
  "luminance": 0.14741
}

Semantic roles & 50–950 ramp

primary
#5F7313
secondary
#5038AA
accent
#39EE5F
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7313

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

Preview Lab → · Contrast checker → · Palette generator →

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