#505E12#505E12

#505E12 is a mid, moderate yellow-green. Relative luminance 0.098; OKLCH L 45.5% C 0.098 H 119.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#505E12
RGBrgb(80, 94, 18)
HSLhsl(71, 68%, 22%)
HSVhsv(71, 81%, 37%)
CMYKcmyk(14.9%, 0%, 80.9%, 63.1%)
CIE-LABlab(37.40, -16.47, 38.74)
CIE-LCHlch(37.40, 42.09, 113.03°)
OKLaboklab(45.47% -0.049 0.0854)
OKLCHoklch(45.47% 0.098 119.8)
XYZxyz(7.4203, 9.7546, 2.0641)
Luminance0.0975 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505E12 #20125E
analogous
#5E4612 #505E12 #2A5E12
triadic
#505E12 #12505E #5E1250
tetradic
#505E12 #125E46 #20125E #5E122A
square
#505E12 #125E46 #20125E #5E122A
split-complementary
#505E12 #122A5E #46125E
monochromatic
#161A05 #242B08 #505E12 #7C911C #A7C526

Accessibility & contrast

On white

7.12
#505E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#505E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505E12
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505E12#FFFFFF#000000##FFFFFF
##505E121.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#635819
Tritanopia (blue-blind)
#555950
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #505e12;
/* rgb */ color: rgb(80, 94, 18);
/* oklch */ color: oklch(45.5% 0.098 119.8);
Tailwind
colors: {
  custom: {
    50: '#848b57',
    500: '#505e12',
    950: '#000000',
  },
}
SCSS
$custom: #505e12;
$custom-light: #848b57;
$custom-dark: #000000;
JSON
{
  "hex": "#505e12",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 71.053,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.45471,
    "c": 0.09846,
    "h": 119.8
  },
  "luminance": 0.09755
}

Semantic roles & 50–950 ramp

primary
#505E12
secondary
#473596
accent
#3DEB5D
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #505E12

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

Preview Lab → · Contrast checker → · Palette generator →

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