#51721C#51721C

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

Color values

HEX#51721C
RGBrgb(81, 114, 28)
HSLhsl(83, 61%, 28%)
HSVhsv(83, 75%, 45%)
CMYKcmyk(28.9%, 0%, 75.4%, 55.3%)
CIE-LABlab(44.04, -25.79, 41.37)
CIE-LCHlch(44.04, 48.75, 121.94°)
OKLaboklab(50.89% -0.0737 0.0927)
OKLCHoklch(50.89% 0.118 128.5)
XYZxyz(9.6202, 13.8676, 3.2682)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51721C #3D1C72
analogous
#72681C #51721C #26721C
triadic
#51721C #1C5172 #721C51
tetradic
#51721C #1C7268 #3D1C72 #721C26
square
#51721C #1C7268 #3D1C72 #721C26
split-complementary
#51721C #1C2672 #681C72
monochromatic
#111906 #2E4110 #51721C #74A328 #95CF3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51721C#FFFFFF#000000##FFFFFF
##51721C1.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)
#786A0C
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#546D61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #51721c;
/* rgb */ color: rgb(81, 114, 28);
/* oklch */ color: oklch(50.9% 0.118 128.5);
Tailwind
colors: {
  custom: {
    50: '#859a5f',
    500: '#51721c',
    950: '#000000',
  },
}
SCSS
$custom: #51721c;
$custom-light: #859a5f;
$custom-dark: #000000;
JSON
{
  "hex": "#51721c",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 28
  },
  "hsl": {
    "h": 83.023,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50888,
    "c": 0.11839,
    "h": 128.5
  },
  "luminance": 0.13868
}

Semantic roles & 50–950 ramp

primary
#51721C
secondary
#6943A6
accent
#44E481
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51721C

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

Preview Lab → · Contrast checker → · Palette generator →

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