#5B8A30#5B8A30

#5B8A30 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.131 H 132.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5B8A30
RGBrgb(91, 138, 48)
HSLhsl(91, 48%, 36%)
HSVhsv(91, 65%, 54%)
CMYKcmyk(34.1%, 0%, 65.2%, 45.9%)
CIE-LABlab(52.52, -31.71, 41.87)
CIE-LCHlch(52.52, 52.52, 127.14°)
OKLaboklab(58% -0.0888 0.0965)
OKLCHoklch(58% 0.131 132.6)
XYZxyz(13.9362, 20.6140, 6.0404)
Luminance0.2061 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B8A30 #5F308A
analogous
#888A30 #5B8A30 #308A32
triadic
#5B8A30 #305B8A #8A305B
tetradic
#5B8A30 #30888A #5F308A #8A3230
square
#5B8A30 #30888A #5F308A #8A3230
split-complementary
#5B8A30 #32308A #8A3088
monochromatic
#1F2F10 #3D5D20 #5B8A30 #79B740 #98CB69

Accessibility & contrast

On white

4.10
#5B8A30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5B8A30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B8A30
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B8A30#FFFFFF#000000##000000
##5B8A301.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#908025
Deuteranopia (green-blind)
#897C37
Tritanopia (blue-blind)
#5C8577
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5b8a30;
/* rgb */ color: rgb(91, 138, 48);
/* oklch */ color: oklch(58.0% 0.131 132.6);
Tailwind
colors: {
  custom: {
    50: '#8dac6d',
    500: '#5b8a30',
    950: '#000000',
  },
}
SCSS
$custom: #5b8a30;
$custom-light: #8dac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b8a30",
  "rgb": {
    "r": 91,
    "g": 138,
    "b": 48
  },
  "hsl": {
    "h": 91.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.57998,
    "c": 0.1311,
    "h": 132.6
  },
  "luminance": 0.20615
}

Semantic roles & 50–950 ramp

primary
#5B8A30
secondary
#8D64B2
accent
#50D897
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5B8A30

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

Preview Lab → · Contrast checker → · Palette generator →

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