#5B8A38#5B8A38

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

Color values

HEX#5B8A38
RGBrgb(91, 138, 56)
HSLhsl(94, 42%, 38%)
HSVhsv(94, 59%, 54%)
CMYKcmyk(34.1%, 0%, 59.4%, 45.9%)
CIE-LABlab(52.60, -30.92, 38.20)
CIE-LCHlch(52.60, 49.15, 128.99°)
OKLaboklab(58.09% -0.0859 0.0896)
OKLCHoklch(58.09% 0.124 133.8)
XYZxyz(14.1164, 20.6861, 6.9896)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A38 #67388A
analogous
#848A38 #5B8A38 #388A3E
triadic
#5B8A38 #385B8A #8A385B
tetradic
#5B8A38 #38848A #67388A #8A3E38
square
#5B8A38 #38848A #67388A #8A3E38
split-complementary
#5B8A38 #3E388A #8A3884
monochromatic
#223315 #3E5E26 #5B8A38 #78B54A #98C775

Accessibility & contrast

On white

4.09
#5B8A38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5B8A38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A38
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A38#FFFFFF#000000##000000
##5B8A381.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F802F
Deuteranopia (green-blind)
#887C3E
Tritanopia (blue-blind)
#5B8578
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5b8a38;
/* rgb */ color: rgb(91, 138, 56);
/* oklch */ color: oklch(58.1% 0.124 133.8);
Tailwind
colors: {
  custom: {
    50: '#8cac71',
    500: '#5b8a38',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a38;
$custom-light: #8cac71;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a38",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 56
  },
  "hsl": {
    "h": 94.39,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.58088,
    "c": 0.12412,
    "h": 133.8
  },
  "luminance": 0.20687
}

Semantic roles & 50–950 ramp

primary
#5B8A38
secondary
#946EB0
accent
#56D29D
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C1008
muted
#7D7F7B

Preview Lab

Preview with #5B8A38

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

Preview Lab → · Contrast checker → · Palette generator →

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