#51891F#51891F

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

Color values

HEX#51891F
RGBrgb(81, 137, 31)
HSLhsl(92, 63%, 33%)
HSVhsv(92, 77%, 54%)
CMYKcmyk(40.9%, 0%, 77.4%, 46.3%)
CIE-LABlab(51.54, -36.27, 47.59)
CIE-LCHlch(51.54, 59.84, 127.31°)
OKLaboklab(57.01% -0.1019 0.1062)
OKLCHoklch(57.01% 0.147 133.8)
XYZxyz(12.5861, 19.7389, 4.4429)
Luminance0.1974 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51891F #571F89
analogous
#86891F #51891F #1F8922
triadic
#51891F #1F5189 #891F51
tetradic
#51891F #1F8689 #571F89 #89221F
square
#51891F #1F8689 #571F89 #89221F
split-complementary
#51891F #221F89 #891F86
monochromatic
#162508 #335714 #51891F #6FBB2A #8DD64C

Accessibility & contrast

On white

4.24
#51891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##51891F#FFFFFF#000000##000000
##51891F1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E07
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#518375
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #51891f;
/* rgb */ color: rgb(81, 137, 31);
/* oklch */ color: oklch(57.0% 0.147 133.8);
Tailwind
colors: {
  custom: {
    50: '#87ac63',
    500: '#51891f',
    950: '#000000',
  },
}
SCSS
$custom: #51891f;
$custom-light: #87ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#51891f",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 91.698,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.14717,
    "h": 133.8
  },
  "luminance": 0.1974
}

Semantic roles & 50–950 ramp

primary
#51891F
secondary
#854BB9
accent
#42E699
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #51891F

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

Preview Lab → · Contrast checker → · Palette generator →

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