#51712E#51712E

#51712E is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 50.8% C 0.102 H 130.6°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#51712E
RGBrgb(81, 113, 46)
HSLhsl(89, 42%, 31%)
HSVhsv(89, 59%, 44%)
CMYKcmyk(28.3%, 0%, 59.3%, 55.7%)
CIE-LABlab(43.88, -23.72, 32.97)
CIE-LCHlch(43.88, 40.62, 125.73°)
OKLaboklab(50.81% -0.0663 0.0774)
OKLCHoklch(50.81% 0.102 130.6)
XYZxyz(9.7915, 13.7566, 4.7236)
Luminance0.1376 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51712E #4E2E71
analogous
#716F2E #51712E #2F712E
triadic
#51712E #2E5171 #712E51
tetradic
#51712E #2E716F #4E2E71 #712E2F
square
#51712E #2E716F #4E2E71 #712E2F
split-complementary
#51712E #2E2F71 #6F2E71
monochromatic
#131A0B #32461C #51712E #709C40 #8FBD5D

Accessibility & contrast

On white

5.60
#51712E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#51712E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51712E
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51712E#FFFFFF#000000##FFFFFF
##51712E1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766927
Deuteranopia (green-blind)
#716733
Tritanopia (blue-blind)
#536C62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #51712e;
/* rgb */ color: rgb(81, 113, 46);
/* oklch */ color: oklch(50.8% 0.102 130.6);
Tailwind
colors: {
  custom: {
    50: '#849a69',
    500: '#51712e',
    950: '#000000',
  },
}
SCSS
$custom: #51712e;
$custom-light: #849a69;
$custom-dark: #000000;
JSON
{
  "hex": "#51712e",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 46
  },
  "hsl": {
    "h": 88.657,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5081,
    "c": 0.10193,
    "h": 130.6
  },
  "luminance": 0.13757
}

Semantic roles & 50–950 ramp

primary
#51712E
secondary
#7C58A2
accent
#56D291
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #51712E

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

Preview Lab → · Contrast checker → · Palette generator →

#51712E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva