#505F12#505F12

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

Color values

HEX#505F12
RGBrgb(80, 95, 18)
HSLhsl(72, 68%, 22%)
HSVhsv(72, 81%, 37%)
CMYKcmyk(15.8%, 0%, 81.1%, 62.7%)
CIE-LABlab(37.72, -17.01, 39.04)
CIE-LCHlch(37.72, 42.59, 113.54°)
OKLaboklab(45.73% -0.0505 0.0861)
OKLCHoklch(45.73% 0.1 120.4)
XYZxyz(7.5098, 9.9336, 2.0939)
Luminance0.0993 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505F12 #21125F
analogous
#5F4812 #505F12 #2A5F12
triadic
#505F12 #12505F #5F1250
tetradic
#505F12 #125F48 #21125F #5F122A
square
#505F12 #125F48 #21125F #5F122A
split-complementary
#505F12 #122A5F #48125F
monochromatic
#161A05 #252C08 #505F12 #7B921C #A7C625

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505F12#FFFFFF#000000##FFFFFF
##505F121.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)
#655902
Deuteranopia (green-blind)
#645919
Tritanopia (blue-blind)
#555A51
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505f12;
/* rgb */ color: rgb(80, 95, 18);
/* oklch */ color: oklch(45.7% 0.100 120.4);
Tailwind
colors: {
  custom: {
    50: '#848c57',
    500: '#505f12',
    950: '#000000',
  },
}
SCSS
$custom: #505f12;
$custom-light: #848c57;
$custom-dark: #000000;
JSON
{
  "hex": "#505f12",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 71.688,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45733,
    "c": 0.09977,
    "h": 120.4
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

primary
#505F12
secondary
#493697
accent
#3DEB5F
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #505F12

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

Preview Lab → · Contrast checker → · Palette generator →

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