#51891D#51891D

#51891D is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.0% C 0.148 H 133.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#51891D
RGBrgb(81, 137, 29)
HSLhsl(91, 65%, 33%)
HSVhsv(91, 79%, 54%)
CMYKcmyk(40.9%, 0%, 78.8%, 46.3%)
CIE-LABlab(51.53, -36.39, 48.28)
CIE-LCHlch(51.53, 60.46, 127.01°)
OKLaboklab(57% -0.1023 0.1073)
OKLCHoklch(57% 0.148 133.6)
XYZxyz(12.5606, 19.7287, 4.3084)
Luminance0.1973 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51891D #551D89
analogous
#87891D #51891D #1D891F
triadic
#51891D #1D5189 #891D51
tetradic
#51891D #1D8789 #551D89 #891F1D
square
#51891D #1D8789 #551D89 #891F1D
split-complementary
#51891D #1F1D89 #891D87
monochromatic
#152408 #335612 #51891D #6FBC28 #8ED848

Accessibility & contrast

On white

4.25
#51891D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#51891D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51891D
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51891D#FFFFFF#000000##000000
##51891D1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E02
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#518375
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #51891d;
/* rgb */ color: rgb(81, 137, 29);
/* oklch */ color: oklch(57.0% 0.148 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ac62',
    500: '#51891d',
    950: '#000000',
  },
}
SCSS
$custom: #51891d;
$custom-light: #87ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#51891d",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 29
  },
  "hsl": {
    "h": 91.111,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56997,
    "c": 0.1483,
    "h": 133.6
  },
  "luminance": 0.19729
}

Semantic roles & 50–950 ramp

primary
#51891D
secondary
#8347BA
accent
#40E897
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #51891D

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

Preview Lab → · Contrast checker → · Palette generator →

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