#508331#508331

#508331 is a mid, vivid yellow-green. Relative luminance 0.182; OKLCH L 55.5% C 0.126 H 135.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#508331
RGBrgb(80, 131, 49)
HSLhsl(97, 46%, 35%)
HSVhsv(97, 63%, 51%)
CMYKcmyk(38.9%, 0%, 62.6%, 48.6%)
CIE-LABlab(49.69, -32.46, 38.09)
CIE-LCHlch(49.69, 50.05, 130.43°)
OKLaboklab(55.53% -0.09 0.0887)
OKLCHoklch(55.53% 0.126 135.4)
XYZxyz(11.9787, 18.1592, 5.7791)
Luminance0.1816 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508331 #643183
analogous
#798331 #508331 #31833B
triadic
#508331 #315083 #833150
tetradic
#508331 #317983 #643183 #833B31
square
#508331 #317983 #643183 #833B31
split-complementary
#508331 #3B3183 #833179
monochromatic
#1A2A10 #355620 #508331 #6BB042 #8CC668

Accessibility & contrast

On white

4.53
#508331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#508331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #508331
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508331#FFFFFF#000000##000000
##5083311.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#817537
Tritanopia (blue-blind)
#4F7E71
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #508331;
/* rgb */ color: rgb(80, 131, 49);
/* oklch */ color: oklch(55.5% 0.126 135.4);
Tailwind
colors: {
  custom: {
    50: '#85a76c',
    500: '#508331',
    950: '#000000',
  },
}
SCSS
$custom: #508331;
$custom-light: #85a76c;
$custom-dark: #000000;
JSON
{
  "hex": "#508331",
  "rgb": {
    "r": 80,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 97.317,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55529,
    "c": 0.12639,
    "h": 135.4
  },
  "luminance": 0.1816
}

Semantic roles & 50–950 ramp

primary
#508331
secondary
#9162AE
accent
#53D5A4
background
#F8FAF6
surface
#EFF4EC
border
#CACEC7
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #508331

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

Preview Lab → · Contrast checker → · Palette generator →

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