#5F8A22#5F8A22

#5F8A22 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.139 H 129.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F8A22
RGBrgb(95, 138, 34)
HSLhsl(85, 60%, 34%)
HSVhsv(85, 75%, 54%)
CMYKcmyk(31.2%, 0%, 75.4%, 45.9%)
CIE-LABlab(52.65, -31.23, 47.85)
CIE-LCHlch(52.65, 57.14, 123.13°)
OKLaboklab(58.12% -0.0889 0.1069)
OKLCHoklch(58.12% 0.139 129.7)
XYZxyz(14.0965, 20.7249, 4.7707)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A22 #4D228A
analogous
#8A8122 #5F8A22 #2B8A22
triadic
#5F8A22 #225F8A #8A225F
tetradic
#5F8A22 #228A81 #4D228A #8A222B
square
#5F8A22 #228A81 #4D228A #8A222B
split-complementary
#5F8A22 #222B8A #81228A
monochromatic
#1B280A #3D5916 #5F8A22 #81BB2E #9ED452

Accessibility & contrast

On white

4.08
#5F8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A22
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A22#FFFFFF#000000##000000
##5F8A221.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a22;
/* rgb */ color: rgb(95, 138, 34);
/* oklch */ color: oklch(58.1% 0.139 129.7);
Tailwind
colors: {
  custom: {
    50: '#90ac65',
    500: '#5f8a22',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a22;
$custom-light: #90ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a22",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 84.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58124,
    "c": 0.13906,
    "h": 129.7
  },
  "luminance": 0.20725
}

Semantic roles & 50–950 ramp

primary
#5F8A22
secondary
#7B50B8
accent
#44E486
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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