#508228#508228

#508228 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.132 H 133.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#508228
RGBrgb(80, 130, 40)
HSLhsl(93, 53%, 33%)
HSVhsv(93, 69%, 51%)
CMYKcmyk(38.5%, 0%, 69.2%, 49%)
CIE-LABlab(49.28, -32.85, 41.74)
CIE-LCHlch(49.28, 53.12, 128.20°)
OKLaboklab(55.17% -0.0918 0.0953)
OKLCHoklch(55.17% 0.132 133.9)
XYZxyz(11.6737, 17.8234, 4.8322)
Luminance0.1782 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#508228 #5A2882
analogous
#7D8228 #508228 #28822D
triadic
#508228 #285082 #822850
tetradic
#508228 #287D82 #5A2882 #822D28
square
#508228 #287D82 #5A2882 #822D28
split-complementary
#508228 #2D2882 #82287D
monochromatic
#16240B #33531A #508228 #6DB136 #8CCC59

Accessibility & contrast

On white

4.60
#508228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#508228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #508228
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##508228#FFFFFF#000000##FFFFFF
##5082281.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87781B
Deuteranopia (green-blind)
#807430
Tritanopia (blue-blind)
#507D70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #508228;
/* rgb */ color: rgb(80, 130, 40);
/* oklch */ color: oklch(55.2% 0.132 133.9);
Tailwind
colors: {
  custom: {
    50: '#85a667',
    500: '#508228',
    950: '#000000',
  },
}
SCSS
$custom: #508228;
$custom-light: #85a667;
$custom-dark: #000000;
JSON
{
  "hex": "#508228",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 93.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55169,
    "c": 0.13234,
    "h": 133.9
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#508228
secondary
#8855B1
accent
#4BDC9C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #508228

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

Preview Lab → · Contrast checker → · Palette generator →

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