#508231#508231

#508231 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.3% C 0.125 H 135.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#508231
RGBrgb(80, 130, 49)
HSLhsl(97, 45%, 35%)
HSVhsv(97, 62%, 51%)
CMYKcmyk(38.5%, 0%, 62.3%, 49%)
CIE-LABlab(49.36, -32.00, 37.73)
CIE-LCHlch(49.36, 49.47, 130.30°)
OKLaboklab(55.26% -0.0888 0.0879)
OKLCHoklch(55.26% 0.125 135.3)
XYZxyz(11.8450, 17.8919, 5.7345)
Luminance0.1789 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508231 #633182
analogous
#788231 #508231 #31823B
triadic
#508231 #315082 #823150
tetradic
#508231 #317882 #633182 #823B31
square
#508231 #317882 #633182 #823B31
split-complementary
#508231 #3B3182 #823178
monochromatic
#19290F #355620 #508231 #6BAE42 #8CC668

Accessibility & contrast

On white

4.59
#508231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#508231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508231
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508231#FFFFFF#000000##FFFFFF
##5082311.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877828
Deuteranopia (green-blind)
#807437
Tritanopia (blue-blind)
#4F7D71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508231;
/* rgb */ color: rgb(80, 130, 49);
/* oklch */ color: oklch(55.3% 0.125 135.3);
Tailwind
colors: {
  custom: {
    50: '#85a66c',
    500: '#508231',
    950: '#000000',
  },
}
SCSS
$custom: #508231;
$custom-light: #85a66c;
$custom-dark: #000000;
JSON
{
  "hex": "#508231",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 97.037,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.55264,
    "c": 0.12495,
    "h": 135.3
  },
  "luminance": 0.17892
}

Semantic roles & 50–950 ramp

primary
#508231
secondary
#9062AD
accent
#53D5A3
background
#F8FAF6
surface
#EFF4EC
border
#CACEC7
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #508231

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

Preview Lab → · Contrast checker → · Palette generator →

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