#5F7331#5F7331

#5F7331 is a mid, moderate yellow-green. Relative luminance 0.149; OKLCH L 52.4% C 0.095 H 123.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5F7331
RGBrgb(95, 115, 49)
HSLhsl(78, 40%, 32%)
HSVhsv(78, 57%, 45%)
CMYKcmyk(17.4%, 0%, 57.4%, 54.9%)
CIE-LABlab(45.52, -18.56, 33.58)
CIE-LCHlch(45.52, 38.37, 118.92°)
OKLaboklab(52.39% -0.0526 0.0788)
OKLCHoklch(52.39% 0.095 123.7)
XYZxyz(11.4045, 14.9161, 5.1834)
Luminance0.1492 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7331 #453173
analogous
#736631 #5F7331 #3E7331
triadic
#5F7331 #315F73 #73315F
tetradic
#5F7331 #317366 #453173 #73313E
square
#5F7331 #317366 #453173 #73313E
split-complementary
#5F7331 #313E73 #663173
monochromatic
#181D0C #3C481F #5F7331 #829E43 #A1BC62

Accessibility & contrast

On white

5.27
#5F7331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5F7331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7331
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7331#FFFFFF#000000##FFFFFF
##5F73311.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C2A
Deuteranopia (green-blind)
#766C35
Tritanopia (blue-blind)
#636E64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f7331;
/* rgb */ color: rgb(95, 115, 49);
/* oklch */ color: oklch(52.4% 0.095 123.7);
Tailwind
colors: {
  custom: {
    50: '#8e9b6b',
    500: '#5f7331',
    950: '#000000',
  },
}
SCSS
$custom: #5f7331;
$custom-light: #8e9b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7331",
  "rgb": {
    "r": 95,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 78.182,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52393,
    "c": 0.09475,
    "h": 123.7
  },
  "luminance": 0.14916
}

Semantic roles & 50–950 ramp

primary
#5F7331
secondary
#725CA4
accent
#58D07C
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E07
muted
#7D7E7A

Preview Lab

Preview with #5F7331

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

Preview Lab → · Contrast checker → · Palette generator →

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