#516227#516227

#516227 is a mid, moderate yellow-green. Relative luminance 0.106; OKLCH L 46.8% C 0.086 H 123.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#516227
RGBrgb(81, 98, 39)
HSLhsl(77, 43%, 27%)
HSVhsv(77, 60%, 38%)
CMYKcmyk(17.3%, 0%, 60.2%, 61.6%)
CIE-LABlab(38.95, -16.58, 30.89)
CIE-LCHlch(38.95, 35.06, 118.23°)
OKLaboklab(46.8% -0.0472 0.0722)
OKLCHoklch(46.8% 0.086 123.2)
XYZxyz(8.1273, 10.6311, 3.5429)
Luminance0.1063 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#516227 #382762
analogous
#625627 #516227 #346227
triadic
#516227 #275162 #622751
tetradic
#516227 #276256 #382762 #622734
square
#516227 #276256 #382762 #622734
split-complementary
#516227 #273462 #562762
monochromatic
#121609 #2D3616 #516227 #758E38 #99B84C

Accessibility & contrast

On white

6.72
#516227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#516227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #516227
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##516227#FFFFFF#000000##FFFFFF
##5162271.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675C21
Deuteranopia (green-blind)
#655C2B
Tritanopia (blue-blind)
#555D55
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #516227;
/* rgb */ color: rgb(81, 98, 39);
/* oklch */ color: oklch(46.8% 0.086 123.2);
Tailwind
colors: {
  custom: {
    50: '#838e63',
    500: '#516227',
    950: '#000000',
  },
}
SCSS
$custom: #516227;
$custom-light: #838e63;
$custom-dark: #000000;
JSON
{
  "hex": "#516227",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 39
  },
  "hsl": {
    "h": 77.288,
    "s": 43.066,
    "l": 26.863
  },
  "oklch": {
    "l": 0.46801,
    "c": 0.08621,
    "h": 123.2
  },
  "luminance": 0.10631
}

Semantic roles & 50–950 ramp

primary
#516227
secondary
#645095
accent
#55D379
background
#F8F8F6
surface
#EFF0EB
border
#CACBC6
text
#0B0C05
muted
#7C7D7A

Preview Lab

Preview with #516227

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

Preview Lab → · Contrast checker → · Palette generator →

#516227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva