#5F8722#5F8722

#5F8722 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.4% C 0.135 H 129.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5F8722
RGBrgb(95, 135, 34)
HSLhsl(84, 60%, 33%)
HSVhsv(84, 75%, 53%)
CMYKcmyk(29.6%, 0%, 74.8%, 47.1%)
CIE-LABlab(51.70, -29.82, 46.91)
CIE-LCHlch(51.70, 55.59, 122.44°)
OKLaboklab(57.35% -0.085 0.105)
OKLCHoklch(57.35% 0.135 129)
XYZxyz(13.6720, 19.8760, 4.6292)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8722 #4A2287
analogous
#877C22 #5F8722 #2D8722
triadic
#5F8722 #225F87 #87225F
tetradic
#5F8722 #22877C #4A2287 #87222D
square
#5F8722 #22877C #4A2287 #87222D
split-complementary
#5F8722 #222D87 #7C2287
monochromatic
#1A2509 #3D5616 #5F8722 #81B82E #9FD350

Accessibility & contrast

On white

4.22
#5F8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5F8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8722
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8722#FFFFFF#000000##000000
##5F87221.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0F
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#628173
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f8722;
/* rgb */ color: rgb(95, 135, 34);
/* oklch */ color: oklch(57.4% 0.135 129.0);
Tailwind
colors: {
  custom: {
    50: '#90aa64',
    500: '#5f8722',
    950: '#000000',
  },
}
SCSS
$custom: #5f8722;
$custom-light: #90aa64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8722",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 83.762,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57351,
    "c": 0.13512,
    "h": 129
  },
  "luminance": 0.19876
}

Semantic roles & 50–950 ramp

primary
#5F8722
secondary
#784EB7
accent
#45E383
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8722

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

Preview Lab → · Contrast checker → · Palette generator →

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