#51861D#51861D

#51861D is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.2% C 0.144 H 133.1°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#51861D
RGBrgb(81, 134, 29)
HSLhsl(90, 64%, 32%)
HSVhsv(90, 78%, 53%)
CMYKcmyk(39.6%, 0%, 78.4%, 47.5%)
CIE-LABlab(50.56, -35.07, 47.35)
CIE-LCHlch(50.56, 58.92, 126.53°)
OKLaboklab(56.2% -0.0988 0.1054)
OKLCHoklch(56.2% 0.144 133.1)
XYZxyz(12.1400, 18.8877, 4.1682)
Luminance0.1889 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51861D #521D86
analogous
#86861D #51861D #1D861E
triadic
#51861D #1D5186 #861D51
tetradic
#51861D #1D8686 #521D86 #861E1D
square
#51861D #1D8686 #521D86 #861E1D
split-complementary
#51861D #1E1D86 #861D86
monochromatic
#142107 #335412 #51861D #6FB828 #8ED746

Accessibility & contrast

On white

4.40
#51861D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#51861D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51861D
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51861D#FFFFFF#000000##000000
##51861D1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B04
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#518072
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #51861d;
/* rgb */ color: rgb(81, 134, 29);
/* oklch */ color: oklch(56.2% 0.144 133.1);
Tailwind
colors: {
  custom: {
    50: '#87a962',
    500: '#51861d',
    950: '#000000',
  },
}
SCSS
$custom: #51861d;
$custom-light: #87a962;
$custom-dark: #000000;
JSON
{
  "hex": "#51861d",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 29
  },
  "hsl": {
    "h": 90.286,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.562,
    "c": 0.14443,
    "h": 133.1
  },
  "luminance": 0.18888
}

Semantic roles & 50–950 ramp

primary
#51861D
secondary
#8046B9
accent
#40E795
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51861D

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

Preview Lab → · Contrast checker → · Palette generator →

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