#51831B#51831B

#51831B is a mid, vivid yellow-green. Relative luminance 0.181; OKLCH L 55.4% C 0.142 H 132.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#51831B
RGBrgb(81, 131, 27)
HSLhsl(89, 66%, 31%)
HSVhsv(89, 79%, 51%)
CMYKcmyk(38.2%, 0%, 79.4%, 48.6%)
CIE-LABlab(49.57, -33.85, 47.09)
CIE-LCHlch(49.57, 57.99, 125.71°)
OKLaboklab(55.39% -0.0956 0.1045)
OKLCHoklch(55.39% 0.142 132.5)
XYZxyz(11.7073, 18.0605, 3.9059)
Luminance0.1806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51831B #4D1B83
analogous
#83811B #51831B #1D831B
triadic
#51831B #1B5183 #831B51
tetradic
#51831B #1B8381 #4D1B83 #831B1D
square
#51831B #1B8381 #4D1B83 #831B1D
split-complementary
#51831B #1B1D83 #811B83
monochromatic
#121E06 #325011 #51831B #70B625 #8FD841

Accessibility & contrast

On white

4.55
#51831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#51831B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51831B
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51831B#FFFFFF#000000##000000
##51831B1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#827426
Tritanopia (blue-blind)
#527D70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #51831b;
/* rgb */ color: rgb(81, 131, 27);
/* oklch */ color: oklch(55.4% 0.142 132.5);
Tailwind
colors: {
  custom: {
    50: '#87a760',
    500: '#51831b',
    950: '#000000',
  },
}
SCSS
$custom: #51831b;
$custom-light: #87a760;
$custom-dark: #000000;
JSON
{
  "hex": "#51831b",
  "rgb": {
    "r": 81,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 88.846,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5539,
    "c": 0.14165,
    "h": 132.5
  },
  "luminance": 0.18061
}

Semantic roles & 50–950 ramp

primary
#51831B
secondary
#7B43B6
accent
#3FE991
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #51831B

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

Preview Lab → · Contrast checker → · Palette generator →

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