#5F741F#5F741F

#5F741F is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.5% C 0.112 H 122.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5F741F
RGBrgb(95, 116, 31)
HSLhsl(75, 58%, 29%)
HSVhsv(75, 73%, 45%)
CMYKcmyk(18.1%, 0%, 73.3%, 54.5%)
CIE-LABlab(45.67, -20.58, 42.10)
CIE-LCHlch(45.67, 46.86, 116.05°)
OKLaboklab(52.46% -0.06 0.0944)
OKLCHoklch(52.46% 0.112 122.4)
XYZxyz(11.2122, 15.0226, 3.6050)
Luminance0.1502 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F741F #341F74
analogous
#745F1F #5F741F #35741F
triadic
#5F741F #1F5F74 #741F5F
tetradic
#5F741F #1F745F #341F74 #741F35
square
#5F741F #1F745F #341F74 #741F35
split-complementary
#5F741F #1F3574 #5F1F74
monochromatic
#141806 #374412 #5F741F #87A42C #AACC41

Accessibility & contrast

On white

5.24
#5F741F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5F741F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F741F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F741F#FFFFFF#000000##FFFFFF
##5F741F1.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D11
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#646E63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f741f;
/* rgb */ color: rgb(95, 116, 31);
/* oklch */ color: oklch(52.5% 0.112 122.4);
Tailwind
colors: {
  custom: {
    50: '#8f9c61',
    500: '#5f741f',
    950: '#000000',
  },
}
SCSS
$custom: #5f741f;
$custom-light: #8f9c61;
$custom-dark: #000000;
JSON
{
  "hex": "#5f741f",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 74.824,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.11185,
    "h": 122.4
  },
  "luminance": 0.15023
}

Semantic roles & 50–950 ramp

primary
#5F741F
secondary
#5F47A8
accent
#47E16D
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F741F

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

Preview Lab → · Contrast checker → · Palette generator →

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