#5F7517#5F7517

#5F7517 is a mid, moderate yellow-green. Relative luminance 0.152; OKLCH L 52.7% C 0.118 H 122.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5F7517
RGBrgb(95, 117, 23)
HSLhsl(74, 67%, 27%)
HSVhsv(74, 80%, 46%)
CMYKcmyk(18.8%, 0%, 80.3%, 54.1%)
CIE-LABlab(45.93, -21.55, 45.34)
CIE-LCHlch(45.93, 50.20, 115.42°)
OKLaboklab(52.65% -0.0634 0.0998)
OKLCHoklch(52.65% 0.118 122.4)
XYZxyz(11.2354, 15.2173, 3.1558)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7517 #2D1775
analogous
#755C17 #5F7517 #307517
triadic
#5F7517 #175F75 #75175F
tetradic
#5F7517 #17755C #2D1775 #751730
square
#5F7517 #17755C #2D1775 #751730
split-complementary
#5F7517 #173075 #5C1775
monochromatic
#151A05 #35420D #5F7517 #89A821 #AFD630

Accessibility & contrast

On white

5.19
#5F7517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5F7517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7517
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7517#FFFFFF#000000##FFFFFF
##5F75171.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#646F64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f7517;
/* rgb */ color: rgb(95, 117, 23);
/* oklch */ color: oklch(52.7% 0.118 122.4);
Tailwind
colors: {
  custom: {
    50: '#8f9c5d',
    500: '#5f7517',
    950: '#000000',
  },
}
SCSS
$custom: #5f7517;
$custom-light: #8f9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7517",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 74.043,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.52655,
    "c": 0.11824,
    "h": 122.4
  },
  "luminance": 0.15217
}

Semantic roles & 50–950 ramp

primary
#5F7517
secondary
#573DAA
accent
#3EEA66
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7517

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

Preview Lab → · Contrast checker → · Palette generator →

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