#5F8B22#5F8B22

#5F8B22 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.4% C 0.140 H 130.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8B22
RGBrgb(95, 139, 34)
HSLhsl(85, 61%, 34%)
HSVhsv(85, 76%, 55%)
CMYKcmyk(31.7%, 0%, 75.5%, 45.5%)
CIE-LABlab(52.96, -31.70, 48.16)
CIE-LCHlch(52.96, 57.65, 123.35°)
OKLaboklab(58.38% -0.0902 0.1076)
OKLCHoklch(58.38% 0.14 130)
XYZxyz(14.2406, 21.0132, 4.8187)
Luminance0.2101 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B22 #4E228B
analogous
#8B8322 #5F8B22 #2B8B22
triadic
#5F8B22 #225F8B #8B225F
tetradic
#5F8B22 #228B83 #4E228B #8B222B
square
#5F8B22 #228B83 #4E228B #8B222B
split-complementary
#5F8B22 #222B8B #83228B
monochromatic
#1C290A #3D5A16 #5F8B22 #81BC2E #9ED553

Accessibility & contrast

On white

4.04
#5F8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B22
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B22#FFFFFF#000000##000000
##5F8B221.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810D
Deuteranopia (green-blind)
#8C7D2C
Tritanopia (blue-blind)
#628577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b22;
/* rgb */ color: rgb(95, 139, 34);
/* oklch */ color: oklch(58.4% 0.140 130.0);
Tailwind
colors: {
  custom: {
    50: '#90ad65',
    500: '#5f8b22',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b22;
$custom-light: #90ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b22",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 85.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58382,
    "c": 0.14038,
    "h": 130
  },
  "luminance": 0.21014
}

Semantic roles & 50–950 ramp

primary
#5F8B22
secondary
#7C50B8
accent
#44E487
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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