#51801D#51801D

#51801D is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.6% C 0.137 H 132.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#51801D
RGBrgb(81, 128, 29)
HSLhsl(88, 63%, 31%)
HSVhsv(88, 77%, 50%)
CMYKcmyk(36.7%, 0%, 77.3%, 49.8%)
CIE-LABlab(48.61, -32.37, 45.46)
CIE-LCHlch(48.61, 55.81, 125.45°)
OKLaboklab(54.61% -0.0915 0.1014)
OKLCHoklch(54.61% 0.137 132)
XYZxyz(11.3342, 17.2759, 3.8996)
Luminance0.1728 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51801D #4C1D80
analogous
#807D1D #51801D #1F801D
triadic
#51801D #1D5180 #801D51
tetradic
#51801D #1D807D #4C1D80 #801D1F
square
#51801D #1D807D #4C1D80 #801D1F
split-complementary
#51801D #1D1F80 #7D1D80
monochromatic
#121C06 #314E12 #51801D #71B228 #8FD443

Accessibility & contrast

On white

4.71
#51801D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#51801D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51801D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51801D#FFFFFF#000000##FFFFFF
##51801D1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867607
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#527A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #51801d;
/* rgb */ color: rgb(81, 128, 29);
/* oklch */ color: oklch(54.6% 0.137 132.0);
Tailwind
colors: {
  custom: {
    50: '#86a561',
    500: '#51801d',
    950: '#000000',
  },
}
SCSS
$custom: #51801d;
$custom-light: #86a561;
$custom-dark: #000000;
JSON
{
  "hex": "#51801d",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 29
  },
  "hsl": {
    "h": 88.485,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54607,
    "c": 0.13658,
    "h": 132
  },
  "luminance": 0.17276
}

Semantic roles & 50–950 ramp

primary
#51801D
secondary
#7A45B3
accent
#42E690
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51801D

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

Preview Lab → · Contrast checker → · Palette generator →

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