#51861B#51861B

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

Color values

HEX#51861B
RGBrgb(81, 134, 27)
HSLhsl(90, 66%, 32%)
HSVhsv(90, 80%, 53%)
CMYKcmyk(39.6%, 0%, 79.9%, 47.5%)
CIE-LABlab(50.54, -35.19, 48.01)
CIE-LCHlch(50.54, 59.53, 126.24°)
OKLaboklab(56.19% -0.0992 0.1065)
OKLCHoklch(56.19% 0.146 133)
XYZxyz(12.1161, 18.8781, 4.0421)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51861B #501B86
analogous
#86861B #51861B #1B861B
triadic
#51861B #1B5186 #861B51
tetradic
#51861B #1B8686 #501B86 #861B1B
square
#51861B #1B8686 #501B86 #861B1B
split-complementary
#51861B #1B1B86 #861B86
monochromatic
#132006 #325311 #51861B #70B925 #8ED942

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51861B#FFFFFF#000000##000000
##51861B1.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)
#8C7B00
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#518072
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #51861b;
/* rgb */ color: rgb(81, 134, 27);
/* oklch */ color: oklch(56.2% 0.146 133.0);
Tailwind
colors: {
  custom: {
    50: '#87a961',
    500: '#51861b',
    950: '#000000',
  },
}
SCSS
$custom: #51861b;
$custom-light: #87a961;
$custom-dark: #000000;
JSON
{
  "hex": "#51861b",
  "rgb": {
    "r": 81,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 89.72,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.14553,
    "h": 133
  },
  "luminance": 0.18879
}

Semantic roles & 50–950 ramp

primary
#51861B
secondary
#7E44B9
accent
#3EE993
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51861B

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

Preview Lab → · Contrast checker → · Palette generator →

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