#5F7315#5F7315

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

Color values

HEX#5F7315
RGBrgb(95, 115, 21)
HSLhsl(73, 69%, 27%)
HSVhsv(73, 82%, 45%)
CMYKcmyk(17.4%, 0%, 81.7%, 54.9%)
CIE-LABlab(45.29, -20.62, 45.41)
CIE-LCHlch(45.29, 49.88, 114.42°)
OKLaboklab(52.13% -0.061 0.0996)
OKLCHoklch(52.13% 0.117 121.5)
XYZxyz(10.9856, 14.7485, 2.9773)
Luminance0.1475 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7315 #291573
analogous
#735815 #5F7315 #307315
triadic
#5F7315 #155F73 #73155F
tetradic
#5F7315 #157358 #291573 #731530
square
#5F7315 #157358 #291573 #731530
split-complementary
#5F7315 #153073 #581573
monochromatic
#151A05 #343F0C #5F7315 #8AA71E #B3D82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5f7315;
/* rgb */ color: rgb(95, 115, 21);
/* oklch */ color: oklch(52.1% 0.117 121.5);
Tailwind
colors: {
  custom: {
    50: '#8f9b5c',
    500: '#5f7315',
    950: '#000000',
  },
}
SCSS
$custom: #5f7315;
$custom-light: #8f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7315",
  "rgb": {
    "r": 95,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 72.766,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52133,
    "c": 0.11679,
    "h": 121.5
  },
  "luminance": 0.14749
}

Semantic roles & 50–950 ramp

primary
#5F7315
secondary
#523BA9
accent
#3CEC61
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7315

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

Preview Lab → · Contrast checker → · Palette generator →

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