#5F751F#5F751F

#5F751F is a mid, moderate yellow-green. Relative luminance 0.153; OKLCH L 52.7% C 0.113 H 122.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5F751F
RGBrgb(95, 117, 31)
HSLhsl(75, 58%, 29%)
HSVhsv(75, 74%, 46%)
CMYKcmyk(18.8%, 0%, 73.5%, 54.1%)
CIE-LABlab(45.98, -21.10, 42.41)
CIE-LCHlch(45.98, 47.37, 116.45°)
OKLaboklab(52.71% -0.0614 0.0951)
OKLCHoklch(52.71% 0.113 122.9)
XYZxyz(11.3281, 15.2544, 3.6437)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F751F #351F75
analogous
#75601F #5F751F #34751F
triadic
#5F751F #1F5F75 #751F5F
tetradic
#5F751F #1F7560 #351F75 #751F34
square
#5F751F #1F7560 #351F75 #751F34
split-complementary
#5F751F #1F3475 #601F75
monochromatic
#141806 #384512 #5F751F #86A52C #A9CD42

Accessibility & contrast

On white

5.18
#5F751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5F751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F751F
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F751F#FFFFFF#000000##FFFFFF
##5F751F1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D11
Deuteranopia (green-blind)
#796D26
Tritanopia (blue-blind)
#646F64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5f751f;
/* rgb */ color: rgb(95, 117, 31);
/* oklch */ color: oklch(52.7% 0.113 122.9);
Tailwind
colors: {
  custom: {
    50: '#8f9c61',
    500: '#5f751f',
    950: '#000000',
  },
}
SCSS
$custom: #5f751f;
$custom-light: #8f9c61;
$custom-dark: #000000;
JSON
{
  "hex": "#5f751f",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 75.349,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52712,
    "c": 0.11318,
    "h": 122.9
  },
  "luminance": 0.15254
}

Semantic roles & 50–950 ramp

primary
#5F751F
secondary
#6047A9
accent
#46E16E
background
#F9F9F5
surface
#F1F2EA
border
#CBCCC6
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F751F

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

Preview Lab → · Contrast checker → · Palette generator →

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