#5F741B#5F741B

#5F741B is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.4% C 0.115 H 122.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5F741B
RGBrgb(95, 116, 27)
HSLhsl(74, 62%, 28%)
HSVhsv(74, 77%, 45%)
CMYKcmyk(18.1%, 0%, 76.7%, 54.5%)
CIE-LABlab(45.64, -20.82, 43.64)
CIE-LCHlch(45.64, 48.35, 115.51°)
OKLaboklab(52.43% -0.0611 0.0969)
OKLCHoklch(52.43% 0.115 122.2)
XYZxyz(11.1627, 15.0028, 3.3444)
Luminance0.1500 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F741B #301B74
analogous
#745C1B #5F741B #32741B
triadic
#5F741B #1B5F74 #741B5F
tetradic
#5F741B #1B745C #301B74 #741B32
square
#5F741B #1B745C #301B74 #741B32
split-complementary
#5F741B #1B3274 #5C1B74
monochromatic
#141906 #36420F #5F741B #88A627 #ADD139

Accessibility & contrast

On white

5.25
#5F741B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F741B
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F741B#FFFFFF#000000##FFFFFF
##5F741B1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D09
Deuteranopia (green-blind)
#796C23
Tritanopia (blue-blind)
#646E63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f741b;
/* rgb */ color: rgb(95, 116, 27);
/* oklch */ color: oklch(52.4% 0.115 122.2);
Tailwind
colors: {
  custom: {
    50: '#8f9c5f',
    500: '#5f741b',
    950: '#000000',
  },
}
SCSS
$custom: #5f741b;
$custom-light: #8f9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f741b",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 74.157,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52427,
    "c": 0.11455,
    "h": 122.2
  },
  "luminance": 0.15003
}

Semantic roles & 50–950 ramp

primary
#5F741B
secondary
#5A42A9
accent
#42E569
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F741B

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

Preview Lab → · Contrast checker → · Palette generator →

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