#5F751B#5F751B

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

Color values

HEX#5F751B
RGBrgb(95, 117, 27)
HSLhsl(75, 63%, 28%)
HSVhsv(75, 77%, 46%)
CMYKcmyk(18.8%, 0%, 76.9%, 54.1%)
CIE-LABlab(45.95, -21.34, 43.94)
CIE-LCHlch(45.95, 48.85, 115.90°)
OKLaboklab(52.68% -0.0625 0.0976)
OKLCHoklch(52.68% 0.116 122.6)
XYZxyz(11.2786, 15.2346, 3.3831)
Luminance0.1524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F751B #311B75
analogous
#755E1B #5F751B #32751B
triadic
#5F751B #1B5F75 #751B5F
tetradic
#5F751B #1B755E #311B75 #751B32
square
#5F751B #1B755E #311B75 #751B32
split-complementary
#5F751B #1B3275 #5E1B75
monochromatic
#141906 #374310 #5F751B #87A726 #ACD139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F751B#FFFFFF#000000##FFFFFF
##5F751B1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f751b;
/* rgb */ color: rgb(95, 117, 27);
/* oklch */ color: oklch(52.7% 0.116 122.6);
Tailwind
colors: {
  custom: {
    50: '#8f9c5f',
    500: '#5f751b',
    950: '#000000',
  },
}
SCSS
$custom: #5f751b;
$custom-light: #8f9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f751b",
  "rgb": {
    "r": 95,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 74.667,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52682,
    "c": 0.11585,
    "h": 122.6
  },
  "luminance": 0.15235
}

Semantic roles & 50–950 ramp

primary
#5F751B
secondary
#5C42A9
accent
#42E66A
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E05
muted
#7E7E79

Preview Lab

Preview with #5F751B

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

Preview Lab → · Contrast checker → · Palette generator →

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