#506A12#506A12

#506A12 is a mid, moderate yellow-green. Relative luminance 0.121; OKLCH L 48.6% C 0.114 H 125.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#506A12
RGBrgb(80, 106, 18)
HSLhsl(78, 71%, 24%)
HSVhsv(78, 83%, 42%)
CMYKcmyk(24.5%, 0%, 83%, 58.4%)
CIE-LABlab(41.31, -22.79, 42.36)
CIE-LCHlch(41.31, 48.10, 118.28°)
OKLaboklab(48.63% -0.0663 0.0931)
OKLCHoklch(48.63% 0.114 125.5)
XYZxyz(8.5716, 12.0571, 2.4478)
Luminance0.1206 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#506A12 #2C126A
analogous
#6A5812 #506A12 #246A12
triadic
#506A12 #12506A #6A1250
tetradic
#506A12 #126A58 #2C126A #6A1224
square
#506A12 #126A58 #2C126A #6A1224
split-complementary
#506A12 #12246A #58126A
monochromatic
#141A04 #293609 #506A12 #779E1B #9FD324

Accessibility & contrast

On white

6.16
#506A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#506A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #506A12
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##506A12#FFFFFF#000000##FFFFFF
##506A121.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6D611B
Tritanopia (blue-blind)
#54645A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #506a12;
/* rgb */ color: rgb(80, 106, 18);
/* oklch */ color: oklch(48.6% 0.114 125.5);
Tailwind
colors: {
  custom: {
    50: '#849459',
    500: '#506a12',
    950: '#000000',
  },
}
SCSS
$custom: #506a12;
$custom-light: #849459;
$custom-dark: #000000;
JSON
{
  "hex": "#506a12",
  "rgb": {
    "r": 80,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 77.727,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.48631,
    "c": 0.11424,
    "h": 125.5
  },
  "luminance": 0.12057
}

Semantic roles & 50–950 ramp

primary
#506A12
secondary
#5636A2
accent
#3AEE6F
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #506A12

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

Preview Lab → · Contrast checker → · Palette generator →

#506A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva