#505F15#505F15

#505F15 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.8% C 0.098 H 120.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#505F15
RGBrgb(80, 95, 21)
HSLhsl(72, 64%, 23%)
HSVhsv(72, 78%, 37%)
CMYKcmyk(15.8%, 0%, 77.9%, 62.7%)
CIE-LABlab(37.74, -16.84, 37.92)
CIE-LCHlch(37.74, 41.50, 113.95°)
OKLaboklab(45.75% -0.0497 0.0843)
OKLCHoklch(45.75% 0.098 120.5)
XYZxyz(7.5360, 9.9441, 2.2317)
Luminance0.0994 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505F15 #24155F
analogous
#5F4915 #505F15 #2B5F15
triadic
#505F15 #15505F #5F1550
tetradic
#505F15 #155F49 #24155F #5F152B
square
#505F15 #155F49 #24155F #5F152B
split-complementary
#505F15 #152B5F #49155F
monochromatic
#151906 #262D0A #505F15 #7A9120 #A4C32B

Accessibility & contrast

On white

7.03
#505F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#505F15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505F15
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505F15#FFFFFF#000000##FFFFFF
##505F151.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655907
Deuteranopia (green-blind)
#64591B
Tritanopia (blue-blind)
#555A51
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505f15;
/* rgb */ color: rgb(80, 95, 21);
/* oklch */ color: oklch(45.8% 0.098 120.5);
Tailwind
colors: {
  custom: {
    50: '#848c58',
    500: '#505f15',
    950: '#000000',
  },
}
SCSS
$custom: #505f15;
$custom-light: #848c58;
$custom-dark: #000000;
JSON
{
  "hex": "#505f15",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 21
  },
  "hsl": {
    "h": 72.162,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.45754,
    "c": 0.09785,
    "h": 120.5
  },
  "luminance": 0.09944
}

Semantic roles & 50–950 ramp

primary
#505F15
secondary
#4C3A96
accent
#41E763
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #505F15

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

Preview Lab → · Contrast checker → · Palette generator →

#505F15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva