#51781E#51781E

#51781E is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.5% C 0.125 H 130.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#51781E
RGBrgb(81, 120, 30)
HSLhsl(86, 60%, 29%)
HSVhsv(86, 75%, 47%)
CMYKcmyk(32.5%, 0%, 75%, 52.9%)
CIE-LABlab(46.01, -28.56, 42.53)
CIE-LCHlch(46.01, 51.24, 123.88°)
OKLaboklab(52.49% -0.081 0.0955)
OKLCHoklch(52.49% 0.125 130.3)
XYZxyz(10.3441, 15.2757, 3.6315)
Luminance0.1528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51781E #451E78
analogous
#78721E #51781E #24781E
triadic
#51781E #1E5178 #781E51
tetradic
#51781E #1E7872 #451E78 #781E24
square
#51781E #1E7872 #451E78 #781E24
split-complementary
#51781E #1E2478 #721E78
monochromatic
#111806 #304712 #51781E #72A92A #92CF41

Accessibility & contrast

On white

5.18
#51781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#51781E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51781E
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51781E#FFFFFF#000000##FFFFFF
##51781E1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0E
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#537366
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #51781e;
/* rgb */ color: rgb(81, 120, 30);
/* oklch */ color: oklch(52.5% 0.125 130.3);
Tailwind
colors: {
  custom: {
    50: '#859f60',
    500: '#51781e',
    950: '#000000',
  },
}
SCSS
$custom: #51781e;
$custom-light: #859f60;
$custom-dark: #000000;
JSON
{
  "hex": "#51781e",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 86,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52492,
    "c": 0.12523,
    "h": 130.3
  },
  "luminance": 0.15276
}

Semantic roles & 50–950 ramp

primary
#51781E
secondary
#7246AC
accent
#45E389
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51781E

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

Preview Lab → · Contrast checker → · Palette generator →

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