#506F12#506F12

#506F12 is a mid, vivid yellow-green. Relative luminance 0.131; OKLCH L 50.0% C 0.121 H 127.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#506F12
RGBrgb(80, 111, 18)
HSLhsl(80, 72%, 25%)
HSVhsv(80, 84%, 44%)
CMYKcmyk(27.9%, 0%, 83.8%, 56.5%)
CIE-LABlab(42.94, -25.30, 43.85)
CIE-LCHlch(42.94, 50.62, 119.98°)
OKLaboklab(49.96% -0.0731 0.0962)
OKLCHoklch(49.96% 0.121 127.2)
XYZxyz(9.1019, 13.1178, 2.6246)
Luminance0.1312 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#506F12 #31126F
analogous
#6F5F12 #506F12 #216F12
triadic
#506F12 #12506F #6F1250
tetradic
#506F12 #126F5F #31126F #6F1221
square
#506F12 #126F5F #31126F #6F1221
split-complementary
#506F12 #12216F #5F126F
monochromatic
#131A04 #2A3A09 #506F12 #76A41B #9CD823

Accessibility & contrast

On white

5.80
#506F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#506F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #506F12
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##506F12#FFFFFF#000000##FFFFFF
##506F121.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#71651C
Tritanopia (blue-blind)
#53695E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #506f12;
/* rgb */ color: rgb(80, 111, 18);
/* oklch */ color: oklch(50.0% 0.121 127.2);
Tailwind
colors: {
  custom: {
    50: '#859859',
    500: '#506f12',
    950: '#000000',
  },
}
SCSS
$custom: #506f12;
$custom-light: #859859;
$custom-dark: #000000;
JSON
{
  "hex": "#506f12",
  "rgb": {
    "r": 80,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 80,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.49956,
    "c": 0.12081,
    "h": 127.2
  },
  "luminance": 0.13118
}

Semantic roles & 50–950 ramp

primary
#506F12
secondary
#5C37A6
accent
#39EF76
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #506F12

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

Preview Lab → · Contrast checker → · Palette generator →

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