#51721D#51721D

#51721D is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 50.9% C 0.118 H 128.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#51721D
RGBrgb(81, 114, 29)
HSLhsl(83, 59%, 28%)
HSVhsv(83, 75%, 45%)
CMYKcmyk(28.9%, 0%, 74.6%, 55.3%)
CIE-LABlab(44.05, -25.72, 40.97)
CIE-LCHlch(44.05, 48.38, 122.12°)
OKLaboklab(50.9% -0.0734 0.092)
OKLCHoklch(50.9% 0.118 128.6)
XYZxyz(9.6324, 13.8724, 3.3323)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51721D #3E1D72
analogous
#72681D #51721D #26721D
triadic
#51721D #1D5172 #721D51
tetradic
#51721D #1D7268 #3E1D72 #721D26
square
#51721D #1D7268 #3E1D72 #721D26
split-complementary
#51721D #1D2672 #681D72
monochromatic
#111806 #2E4111 #51721D #74A329 #95CD3C

Accessibility & contrast

On white

5.56
#51721D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#51721D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51721D
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51721D#FFFFFF#000000##FFFFFF
##51721D1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A0E
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#546D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #51721d;
/* rgb */ color: rgb(81, 114, 29);
/* oklch */ color: oklch(50.9% 0.118 128.6);
Tailwind
colors: {
  custom: {
    50: '#859a5f',
    500: '#51721d',
    950: '#000000',
  },
}
SCSS
$custom: #51721d;
$custom-light: #859a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#51721d",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 29
  },
  "hsl": {
    "h": 83.294,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50896,
    "c": 0.11771,
    "h": 128.6
  },
  "luminance": 0.13873
}

Semantic roles & 50–950 ramp

primary
#51721D
secondary
#6A45A6
accent
#45E382
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51721D

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

Preview Lab → · Contrast checker → · Palette generator →

#51721D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva