#51801E#51801E

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

Color values

HEX#51801E
RGBrgb(81, 128, 30)
HSLhsl(89, 62%, 31%)
HSVhsv(89, 77%, 50%)
CMYKcmyk(36.7%, 0%, 76.6%, 49.8%)
CIE-LABlab(48.61, -32.30, 45.10)
CIE-LCHlch(48.61, 55.48, 125.61°)
OKLaboklab(54.61% -0.0912 0.1009)
OKLCHoklch(54.61% 0.136 132.1)
XYZxyz(11.3467, 17.2809, 3.9658)
Luminance0.1728 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51801E #4D1E80
analogous
#807E1E #51801E #20801E
triadic
#51801E #1E5180 #801E51
tetradic
#51801E #1E807E #4D1E80 #801E20
square
#51801E #1E807E #4D1E80 #801E20
split-complementary
#51801E #1E2080 #7E1E80
monochromatic
#121D07 #324E12 #51801E #70B22A #8FD345

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51801E#FFFFFF#000000##FFFFFF
##51801E1.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)
#86760A
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#527B6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #51801e;
/* rgb */ color: rgb(81, 128, 30);
/* oklch */ color: oklch(54.6% 0.136 132.1);
Tailwind
colors: {
  custom: {
    50: '#86a561',
    500: '#51801e',
    950: '#000000',
  },
}
SCSS
$custom: #51801e;
$custom-light: #86a561;
$custom-dark: #000000;
JSON
{
  "hex": "#51801e",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 30
  },
  "hsl": {
    "h": 88.776,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54614,
    "c": 0.13598,
    "h": 132.1
  },
  "luminance": 0.17281
}

Semantic roles & 50–950 ramp

primary
#51801E
secondary
#7B47B3
accent
#43E591
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51801E

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

Preview Lab → · Contrast checker → · Palette generator →

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