#51721E#51721E

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

Color values

HEX#51721E
RGBrgb(81, 114, 30)
HSLhsl(84, 58%, 28%)
HSVhsv(84, 74%, 45%)
CMYKcmyk(28.9%, 0%, 73.7%, 55.3%)
CIE-LABlab(44.06, -25.65, 40.58)
CIE-LCHlch(44.06, 48.00, 122.30°)
OKLaboklab(50.9% -0.0731 0.0914)
OKLCHoklch(50.9% 0.117 128.7)
XYZxyz(9.6450, 13.8775, 3.3985)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51721E #3F1E72
analogous
#72691E #51721E #27721E
triadic
#51721E #1E5172 #721E51
tetradic
#51721E #1E7269 #3F1E72 #721E27
square
#51721E #1E7269 #3F1E72 #721E27
split-complementary
#51721E #1E2772 #691E72
monochromatic
#111806 #2F4211 #51721E #73A22B #94CC3E

Accessibility & contrast

On white

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

On black

3.78
#51721E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##51721E#FFFFFF#000000##FFFFFF
##51721E1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51721e;
/* rgb */ color: rgb(81, 114, 30);
/* oklch */ color: oklch(50.9% 0.117 128.7);
Tailwind
colors: {
  custom: {
    50: '#859a60',
    500: '#51721e',
    950: '#000000',
  },
}
SCSS
$custom: #51721e;
$custom-light: #859a60;
$custom-dark: #000000;
JSON
{
  "hex": "#51721e",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 30
  },
  "hsl": {
    "h": 83.571,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50904,
    "c": 0.11701,
    "h": 128.7
  },
  "luminance": 0.13878
}

Semantic roles & 50–950 ramp

primary
#51721E
secondary
#6C46A6
accent
#46E283
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51721E

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

Preview Lab → · Contrast checker → · Palette generator →

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