#508C40#508C40

#508C40 is a mid, vivid green. Relative luminance 0.208; OKLCH L 58.1% C 0.126 H 139.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#508C40
RGBrgb(80, 140, 64)
HSLhsl(107, 37%, 40%)
HSVhsv(107, 54%, 55%)
CMYKcmyk(42.9%, 0%, 54.3%, 45.1%)
CIE-LABlab(52.76, -34.81, 34.26)
CIE-LCHlch(52.76, 48.84, 135.45°)
OKLaboklab(58.1% -0.0954 0.0818)
OKLCHoklch(58.1% 0.126 139.4)
XYZxyz(13.6113, 20.8310, 8.1531)
Luminance0.2083 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508C40 #7C408C
analogous
#768C40 #508C40 #408C56
triadic
#508C40 #40508C #8C4050
tetradic
#508C40 #40768C #7C408C #8C5640
square
#508C40 #40768C #7C408C #8C5640
split-complementary
#508C40 #56408C #8C4076
monochromatic
#20381A #38622D #508C40 #6AB257 #8FC581

Accessibility & contrast

On white

4.06
#508C40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#508C40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508C40
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508C40#FFFFFF#000000##000000
##508C401.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908139
Deuteranopia (green-blind)
#877C45
Tritanopia (blue-blind)
#4C887B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #508c40;
/* rgb */ color: rgb(80, 140, 64);
/* oklch */ color: oklch(58.1% 0.126 139.4);
Tailwind
colors: {
  custom: {
    50: '#85ae77',
    500: '#508c40',
    950: '#000000',
  },
}
SCSS
$custom: #508c40;
$custom-light: #85ae77;
$custom-dark: #000000;
JSON
{
  "hex": "#508c40",
  "rgb": {
    "r": 80,
    "g": 140,
    "b": 64
  },
  "hsl": {
    "h": 107.368,
    "s": 37.255,
    "l": 40
  },
  "oklch": {
    "l": 0.58095,
    "c": 0.12567,
    "h": 139.4
  },
  "luminance": 0.20832
}

Semantic roles & 50–950 ramp

primary
#508C40
secondary
#A478B0
accent
#5BCDB5
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0B1009
muted
#7C7F7B

Preview Lab

Preview with #508C40

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

Preview Lab → · Contrast checker → · Palette generator →

#508C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva