#5F8B2D#5F8B2D

#5F8B2D is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.5% C 0.133 H 131.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5F8B2D
RGBrgb(95, 139, 45)
HSLhsl(88, 51%, 36%)
HSVhsv(88, 68%, 55%)
CMYKcmyk(31.7%, 0%, 67.6%, 45.5%)
CIE-LABlab(53.04, -30.90, 43.82)
CIE-LCHlch(53.04, 53.62, 125.19°)
OKLaboklab(58.47% -0.0871 0.1002)
OKLCHoklch(58.47% 0.133 131)
XYZxyz(14.4255, 21.0871, 5.7923)
Luminance0.2109 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B2D #592D8B
analogous
#8B882D #5F8B2D #308B2D
triadic
#5F8B2D #2D5F8B #8B2D5F
tetradic
#5F8B2D #2D8B88 #592D8B #8B2D30
square
#5F8B2D #2D8B88 #592D8B #8B2D30
split-complementary
#5F8B2D #2D308B #882D8B
monochromatic
#202F0F #3F5D1E #5F8B2D #7FB93C #9DCD65

Accessibility & contrast

On white

4.02
#5F8B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5F8B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B2D
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B2D#FFFFFF#000000##000000
##5F8B2D1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#918120
Deuteranopia (green-blind)
#8B7E35
Tritanopia (blue-blind)
#618578
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5f8b2d;
/* rgb */ color: rgb(95, 139, 45);
/* oklch */ color: oklch(58.5% 0.133 131.0);
Tailwind
colors: {
  custom: {
    50: '#90ad6b',
    500: '#5f8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b2d;
$custom-light: #90ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b2d",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 88.085,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58474,
    "c": 0.1327,
    "h": 131
  },
  "luminance": 0.21088
}

Semantic roles & 50–950 ramp

primary
#5F8B2D
secondary
#8760B4
accent
#4DDB8F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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