#5F7422#5F7422

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

Color values

HEX#5F7422
RGBrgb(95, 116, 34)
HSLhsl(75, 55%, 29%)
HSVhsv(75, 71%, 45%)
CMYKcmyk(18.1%, 0%, 70.7%, 54.5%)
CIE-LABlab(45.69, -20.37, 40.87)
CIE-LCHlch(45.69, 45.66, 116.50°)
OKLaboklab(52.48% -0.0592 0.0923)
OKLCHoklch(52.48% 0.11 122.7)
XYZxyz(11.2536, 15.0391, 3.8230)
Luminance0.1504 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7422 #372274
analogous
#746022 #5F7422 #367422
triadic
#5F7422 #225F74 #74225F
tetradic
#5F7422 #227460 #372274 #742236
square
#5F7422 #227460 #372274 #742236
split-complementary
#5F7422 #223674 #602274
monochromatic
#131807 #384514 #5F7422 #86A330 #A8C947

Accessibility & contrast

On white

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

On black

4.01
#5F7422 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F7422#FFFFFF#000000##FFFFFF
##5F74221.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D16
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#646E64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f7422;
/* rgb */ color: rgb(95, 116, 34);
/* oklch */ color: oklch(52.5% 0.110 122.7);
Tailwind
colors: {
  custom: {
    50: '#8f9c62',
    500: '#5f7422',
    950: '#000000',
  },
}
SCSS
$custom: #5f7422;
$custom-light: #8f9c62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7422",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 34
  },
  "hsl": {
    "h": 75.366,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52483,
    "c": 0.10963,
    "h": 122.7
  },
  "luminance": 0.15039
}

Semantic roles & 50–950 ramp

primary
#5F7422
secondary
#624BA7
accent
#4ADE70
background
#F9F9F6
surface
#F1F2EB
border
#CBCCC6
text
#0D0E05
muted
#7E7E7A

Preview Lab

Preview with #5F7422

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

Preview Lab → · Contrast checker → · Palette generator →

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