#507828#507828

#507828 is a mid, moderate yellow-green. Relative luminance 0.153; OKLCH L 52.5% C 0.118 H 131.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#507828
RGBrgb(80, 120, 40)
HSLhsl(90, 50%, 31%)
HSVhsv(90, 67%, 47%)
CMYKcmyk(33.3%, 0%, 66.7%, 52.9%)
CIE-LABlab(46.03, -28.17, 38.26)
CIE-LCHlch(46.03, 47.51, 126.36°)
OKLaboklab(52.52% -0.079 0.088)
OKLCHoklch(52.52% 0.118 131.9)
XYZxyz(10.4076, 15.2913, 4.4102)
Luminance0.1529 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#507828 #502878
analogous
#787828 #507828 #287828
triadic
#507828 #285078 #782850
tetradic
#507828 #287878 #502878 #782828
square
#507828 #287878 #502878 #782828
split-complementary
#507828 #282878 #782878
monochromatic
#131C09 #314A19 #507828 #6FA637 #8DC654

Accessibility & contrast

On white

5.17
#507828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#507828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #507828
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##507828#FFFFFF#000000##FFFFFF
##5078281.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#786C2E
Tritanopia (blue-blind)
#517367
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #507828;
/* rgb */ color: rgb(80, 120, 40);
/* oklch */ color: oklch(52.5% 0.118 131.9);
Tailwind
colors: {
  custom: {
    50: '#849f66',
    500: '#507828',
    950: '#000000',
  },
}
SCSS
$custom: #507828;
$custom-light: #849f66;
$custom-dark: #000000;
JSON
{
  "hex": "#507828",
  "rgb": {
    "r": 80,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 90,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52519,
    "c": 0.11827,
    "h": 131.9
  },
  "luminance": 0.15292
}

Semantic roles & 50–950 ramp

primary
#507828
secondary
#7E52AA
accent
#4EDA94
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #507828

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

Preview Lab → · Contrast checker → · Palette generator →

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