#508A42#508A42

#508A42 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.6% C 0.121 H 139.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#508A42
RGBrgb(80, 138, 66)
HSLhsl(108, 35%, 40%)
HSVhsv(108, 52%, 54%)
CMYKcmyk(42%, 0%, 52.2%, 45.9%)
CIE-LABlab(52.15, -33.64, 32.48)
CIE-LCHlch(52.15, 46.76, 136.00°)
OKLaboklab(57.6% -0.0921 0.078)
OKLCHoklch(57.6% 0.121 139.7)
XYZxyz(13.3796, 20.2750, 8.3617)
Luminance0.2028 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508A42 #7C428A
analogous
#748A42 #508A42 #428A58
triadic
#508A42 #42508A #8A4250
tetradic
#508A42 #42748A #7C428A #8A5842
square
#508A42 #42748A #7C428A #8A5842
split-complementary
#508A42 #58428A #8A4274
monochromatic
#20371A #38612E #508A42 #6AB059 #8FC483

Accessibility & contrast

On white

4.15
#508A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#508A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508A42
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508A42#FFFFFF#000000##000000
##508A421.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E803C
Deuteranopia (green-blind)
#857A47
Tritanopia (blue-blind)
#4C8679
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #508a42;
/* rgb */ color: rgb(80, 138, 66);
/* oklch */ color: oklch(57.6% 0.121 139.7);
Tailwind
colors: {
  custom: {
    50: '#85ac78',
    500: '#508a42',
    950: '#000000',
  },
}
SCSS
$custom: #508a42;
$custom-light: #85ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#508a42",
  "rgb": {
    "r": 80,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 108.333,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.57599,
    "c": 0.1207,
    "h": 139.7
  },
  "luminance": 0.20276
}

Semantic roles & 50–950 ramp

primary
#508A42
secondary
#A479AE
accent
#5CCBB6
background
#F8FAF7
surface
#EFF4ED
border
#CACEC8
text
#0B1009
muted
#7C7F7B

Preview Lab

Preview with #508A42

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

Preview Lab → · Contrast checker → · Palette generator →

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