#509228#509228

#509228 is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 59.4% C 0.154 H 136.1°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#509228
RGBrgb(80, 146, 40)
HSLhsl(97, 57%, 36%)
HSVhsv(97, 73%, 57%)
CMYKcmyk(45.2%, 0%, 72.6%, 42.7%)
CIE-LABlab(54.47, -39.86, 47.13)
CIE-LCHlch(54.47, 61.72, 130.23°)
OKLaboklab(59.41% -0.1108 0.1066)
OKLCHoklch(59.41% 0.154 136.1)
XYZxyz(13.9698, 22.4156, 5.5976)
Luminance0.2242 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#509228 #6A2892
analogous
#859228 #509228 #289235
triadic
#509228 #285092 #922850
tetradic
#509228 #288592 #6A2892 #923528
square
#509228 #288592 #6A2892 #923528
split-complementary
#509228 #352892 #922885
monochromatic
#1B320E #36621B #509228 #6AC235 #8CD461

Accessibility & contrast

On white

3.83
#509228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#509228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #509228
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##509228#FFFFFF#000000##000000
##5092281.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978616
Deuteranopia (green-blind)
#8E8032
Tritanopia (blue-blind)
#4D8D7D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #509228;
/* rgb */ color: rgb(80, 146, 40);
/* oklch */ color: oklch(59.4% 0.154 136.1);
Tailwind
colors: {
  custom: {
    50: '#87b269',
    500: '#509228',
    950: '#000000',
  },
}
SCSS
$custom: #509228;
$custom-light: #87b269;
$custom-dark: #000000;
JSON
{
  "hex": "#509228",
  "rgb": {
    "r": 80,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 97.358,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.59412,
    "c": 0.1538,
    "h": 136.1
  },
  "luminance": 0.22416
}

Semantic roles & 50–950 ramp

primary
#509228
secondary
#965DB9
accent
#48E0A7
background
#F8FBF6
surface
#F0F6EB
border
#CBD0C6
text
#0C1107
muted
#7D807A

Preview Lab

Preview with #509228

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

Preview Lab → · Contrast checker → · Palette generator →

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