#51861A#51861A

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

Color values

HEX#51861A
RGBrgb(81, 134, 26)
HSLhsl(89, 68%, 31%)
HSVhsv(89, 81%, 53%)
CMYKcmyk(39.6%, 0%, 80.6%, 47.5%)
CIE-LABlab(50.54, -35.25, 48.34)
CIE-LCHlch(50.54, 59.82, 126.10°)
OKLaboklab(56.18% -0.0994 0.107)
OKLCHoklch(56.18% 0.146 132.9)
XYZxyz(12.1047, 18.8735, 3.9822)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51861A #4F1A86
analogous
#86851A #51861A #1B861A
triadic
#51861A #1A5186 #861A51
tetradic
#51861A #1A8685 #4F1A86 #861A1B
square
#51861A #1A8685 #4F1A86 #861A1B
split-complementary
#51861A #1A1B86 #851A86
monochromatic
#131F06 #325310 #51861A #70B924 #8FDA40

Accessibility & contrast

On white

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

On black

4.77
#51861A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51861A
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51861A#FFFFFF#000000##000000
##51861A1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51861a;
/* rgb */ color: rgb(81, 134, 26);
/* oklch */ color: oklch(56.2% 0.146 132.9);
Tailwind
colors: {
  custom: {
    50: '#87a960',
    500: '#51861a',
    950: '#000000',
  },
}
SCSS
$custom: #51861a;
$custom-light: #87a960;
$custom-dark: #000000;
JSON
{
  "hex": "#51861a",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 26
  },
  "hsl": {
    "h": 89.444,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56181,
    "c": 0.14606,
    "h": 132.9
  },
  "luminance": 0.18874
}

Semantic roles & 50–950 ramp

primary
#51861A
secondary
#7D42B9
accent
#3DEA92
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #51861A

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

Preview Lab → · Contrast checker → · Palette generator →

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