#508138#508138

#508138 is a mid, moderate green. Relative luminance 0.177; OKLCH L 55.1% C 0.117 H 136.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#508138
RGBrgb(80, 129, 56)
HSLhsl(100, 39%, 36%)
HSVhsv(100, 57%, 51%)
CMYKcmyk(38%, 0%, 56.6%, 49.4%)
CIE-LABlab(49.12, -30.75, 33.99)
CIE-LCHlch(49.12, 45.83, 132.13°)
OKLaboklab(55.09% -0.0848 0.0806)
OKLCHoklch(55.09% 0.117 136.5)
XYZxyz(11.8720, 17.6909, 6.5298)
Luminance0.1769 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508138 #693881
analogous
#758138 #508138 #388145
triadic
#508138 #385081 #813850
tetradic
#508138 #387581 #693881 #814538
square
#508138 #387581 #693881 #814538
split-complementary
#508138 #453881 #813875
monochromatic
#1B2C13 #365625 #508138 #6AAC4B #8CC272

Accessibility & contrast

On white

4.63
#508138 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#508138 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508138
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508138#FFFFFF#000000##FFFFFF
##5081381.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857731
Deuteranopia (green-blind)
#7E733D
Tritanopia (blue-blind)
#4E7D71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508138;
/* rgb */ color: rgb(80, 129, 56);
/* oklch */ color: oklch(55.1% 0.117 136.5);
Tailwind
colors: {
  custom: {
    50: '#84a671',
    500: '#508138',
    950: '#000000',
  },
}
SCSS
$custom: #508138;
$custom-light: #84a671;
$custom-dark: #000000;
JSON
{
  "hex": "#508138",
  "rgb": {
    "r": 80,
    "g": 129,
    "b": 56
  },
  "hsl": {
    "h": 100.274,
    "s": 39.459,
    "l": 36.275
  },
  "oklch": {
    "l": 0.55089,
    "c": 0.11699,
    "h": 136.5
  },
  "luminance": 0.17692
}

Semantic roles & 50–950 ramp

primary
#508138
secondary
#956AAB
accent
#58CFA8
background
#F8FAF6
surface
#EFF4EC
border
#CACEC7
text
#0B0F08
muted
#7C7F7B

Preview Lab

Preview with #508138

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

Preview Lab → · Contrast checker → · Palette generator →

#508138 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva