#5F7F22#5F7F22

#5F7F22 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.3% C 0.124 H 126.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5F7F22
RGBrgb(95, 127, 34)
HSLhsl(81, 58%, 32%)
HSVhsv(81, 73%, 50%)
CMYKcmyk(25.2%, 0%, 73.2%, 50.2%)
CIE-LABlab(49.16, -25.95, 44.40)
CIE-LCHlch(49.16, 51.42, 120.30°)
OKLaboklab(55.29% -0.0745 0.0997)
OKLCHoklch(55.29% 0.124 126.8)
XYZxyz(12.5975, 17.7269, 4.2710)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7F22 #42227F
analogous
#7F7122 #5F7F22 #317F22
triadic
#5F7F22 #225F7F #7F225F
tetradic
#5F7F22 #227F71 #42227F #7F2231
square
#5F7F22 #227F71 #42227F #7F2231
split-complementary
#5F7F22 #22317F #71227F
monochromatic
#171E08 #3B4F15 #5F7F22 #83AF2F #A2CF4C

Accessibility & contrast

On white

4.62
#5F7F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5F7F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7F22
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7F22#FFFFFF#000000##FFFFFF
##5F7F221.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867612
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#63796D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5f7f22;
/* rgb */ color: rgb(95, 127, 34);
/* oklch */ color: oklch(55.3% 0.124 126.8);
Tailwind
colors: {
  custom: {
    50: '#8fa464',
    500: '#5f7f22',
    950: '#000000',
  },
}
SCSS
$custom: #5f7f22;
$custom-light: #8fa464;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7f22",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 80.645,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55294,
    "c": 0.12446,
    "h": 126.8
  },
  "luminance": 0.17727
}

Semantic roles & 50–950 ramp

primary
#5F7F22
secondary
#6E4BB2
accent
#47E17C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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