#5F8A30#5F8A30

#5F8A30 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.129 H 131.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5F8A30
RGBrgb(95, 138, 48)
HSLhsl(89, 48%, 36%)
HSVhsv(89, 65%, 54%)
CMYKcmyk(31.2%, 0%, 65.2%, 45.9%)
CIE-LABlab(52.76, -30.17, 42.19)
CIE-LCHlch(52.76, 51.87, 125.57°)
OKLaboklab(58.25% -0.0848 0.0971)
OKLCHoklch(58.25% 0.129 131.1)
XYZxyz(14.3411, 20.8228, 6.0593)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A30 #5B308A
analogous
#8A8830 #5F8A30 #328A30
triadic
#5F8A30 #305F8A #8A305F
tetradic
#5F8A30 #308A88 #5B308A #8A3032
square
#5F8A30 #308A88 #5B308A #8A3032
split-complementary
#5F8A30 #30328A #88308A
monochromatic
#202F10 #405D20 #5F8A30 #7EB740 #9CCB69

Accessibility & contrast

On white

4.07
#5F8A30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5F8A30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A30
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A30#FFFFFF#000000##000000
##5F8A301.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#908025
Deuteranopia (green-blind)
#8A7D37
Tritanopia (blue-blind)
#618477
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a30;
/* rgb */ color: rgb(95, 138, 48);
/* oklch */ color: oklch(58.2% 0.129 131.1);
Tailwind
colors: {
  custom: {
    50: '#8fac6d',
    500: '#5f8a30',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a30;
$custom-light: #8fac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a30",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 48
  },
  "hsl": {
    "h": 88.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.58246,
    "c": 0.12892,
    "h": 131.1
  },
  "luminance": 0.20823
}

Semantic roles & 50–950 ramp

primary
#5F8A30
secondary
#8964B2
accent
#50D891
background
#F9FAF6
surface
#F1F4EC
border
#CBCEC7
text
#0D1007
muted
#7E7F7A

Preview Lab

Preview with #5F8A30

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

Preview Lab → · Contrast checker → · Palette generator →

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