#51782D#51782D

#51782D is a mid, moderate yellow-green. Relative luminance 0.154; OKLCH L 52.6% C 0.113 H 132.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#51782D
RGBrgb(81, 120, 45)
HSLhsl(91, 45%, 32%)
HSVhsv(91, 63%, 47%)
CMYKcmyk(32.5%, 0%, 62.5%, 52.9%)
CIE-LABlab(46.14, -27.29, 36.04)
CIE-LCHlch(46.14, 45.21, 127.14°)
OKLaboklab(52.64% -0.0763 0.0839)
OKLCHoklch(52.64% 0.113 132.3)
XYZxyz(10.5833, 15.3714, 4.8915)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51782D #542D78
analogous
#77782D #51782D #2D782E
triadic
#51782D #2D5178 #782D51
tetradic
#51782D #2D7778 #542D78 #782E2D
square
#51782D #2D7778 #542D78 #782E2D
split-complementary
#51782D #2E2D78 #782D77
monochromatic
#151F0C #334B1C #51782D #6FA53E #8EC25D

Accessibility & contrast

On white

5.15
#51782D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#51782D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51782D
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51782D#FFFFFF#000000##FFFFFF
##51782D1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F25
Deuteranopia (green-blind)
#776C33
Tritanopia (blue-blind)
#527368
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #51782d;
/* rgb */ color: rgb(81, 120, 45);
/* oklch */ color: oklch(52.6% 0.113 132.3);
Tailwind
colors: {
  custom: {
    50: '#859f69',
    500: '#51782d',
    950: '#000000',
  },
}
SCSS
$custom: #51782d;
$custom-light: #859f69;
$custom-dark: #000000;
JSON
{
  "hex": "#51782d",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 45
  },
  "hsl": {
    "h": 91.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52639,
    "c": 0.11336,
    "h": 132.3
  },
  "luminance": 0.15372
}

Semantic roles & 50–950 ramp

primary
#51782D
secondary
#8258A9
accent
#53D597
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #51782D

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

Preview Lab → · Contrast checker → · Palette generator →

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