#51781D#51781D

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

Color values

HEX#51781D
RGBrgb(81, 120, 29)
HSLhsl(86, 61%, 29%)
HSVhsv(86, 76%, 47%)
CMYKcmyk(32.5%, 0%, 75.8%, 52.9%)
CIE-LABlab(46.00, -28.63, 42.92)
CIE-LCHlch(46.00, 51.59, 123.71°)
OKLaboklab(52.48% -0.0813 0.0961)
OKLCHoklch(52.48% 0.126 130.2)
XYZxyz(10.3315, 15.2707, 3.5653)
Luminance0.1527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51781D #441D78
analogous
#78721D #51781D #24781D
triadic
#51781D #1D5178 #781D51
tetradic
#51781D #1D7872 #441D78 #781D24
square
#51781D #1D7872 #441D78 #781D24
split-complementary
#51781D #1D2478 #721D78
monochromatic
#111906 #304711 #51781D #72A929 #92D13F

Accessibility & contrast

On white

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

On black

4.05
#51781D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##51781D#FFFFFF#000000##FFFFFF
##51781D1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51781d;
/* rgb */ color: rgb(81, 120, 29);
/* oklch */ color: oklch(52.5% 0.126 130.2);
Tailwind
colors: {
  custom: {
    50: '#859f60',
    500: '#51781d',
    950: '#000000',
  },
}
SCSS
$custom: #51781d;
$custom-light: #859f60;
$custom-dark: #000000;
JSON
{
  "hex": "#51781d",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 85.714,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52484,
    "c": 0.12589,
    "h": 130.2
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

primary
#51781D
secondary
#7145AC
accent
#44E488
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51781D

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

Preview Lab → · Contrast checker → · Palette generator →

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