#51831D#51831D

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

Color values

HEX#51831D
RGBrgb(81, 131, 29)
HSLhsl(89, 64%, 31%)
HSVhsv(89, 78%, 51%)
CMYKcmyk(38.2%, 0%, 77.9%, 48.6%)
CIE-LABlab(49.58, -33.73, 46.41)
CIE-LCHlch(49.58, 57.37, 126.01°)
OKLaboklab(55.4% -0.0951 0.1034)
OKLCHoklch(55.4% 0.141 132.6)
XYZxyz(11.7313, 18.0701, 4.0319)
Luminance0.1807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51831D #4F1D83
analogous
#83821D #51831D #1E831D
triadic
#51831D #1D5183 #831D51
tetradic
#51831D #1D8382 #4F1D83 #831D1E
square
#51831D #1D8382 #4F1D83 #831D1E
split-complementary
#51831D #1D1E83 #821D83
monochromatic
#131F07 #325112 #51831D #70B528 #8FD645

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51831D#FFFFFF#000000##000000
##51831D1.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)
#897806
Deuteranopia (green-blind)
#827427
Tritanopia (blue-blind)
#527D70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #51831d;
/* rgb */ color: rgb(81, 131, 29);
/* oklch */ color: oklch(55.4% 0.141 132.6);
Tailwind
colors: {
  custom: {
    50: '#86a761',
    500: '#51831d',
    950: '#000000',
  },
}
SCSS
$custom: #51831d;
$custom-light: #86a761;
$custom-dark: #000000;
JSON
{
  "hex": "#51831d",
  "rgb": {
    "r": 81,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 89.412,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55403,
    "c": 0.14053,
    "h": 132.6
  },
  "luminance": 0.18071
}

Semantic roles & 50–950 ramp

primary
#51831D
secondary
#7D46B6
accent
#41E792
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51831D

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

Preview Lab → · Contrast checker → · Palette generator →

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