#51831C#51831C

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

Color values

HEX#51831C
RGBrgb(81, 131, 28)
HSLhsl(89, 65%, 31%)
HSVhsv(89, 79%, 51%)
CMYKcmyk(38.2%, 0%, 78.6%, 48.6%)
CIE-LABlab(49.58, -33.79, 46.75)
CIE-LCHlch(49.58, 57.69, 125.86°)
OKLaboklab(55.4% -0.0954 0.104)
OKLCHoklch(55.4% 0.141 132.5)
XYZxyz(11.7191, 18.0653, 3.9679)
Luminance0.1807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51831C #4E1C83
analogous
#83811C #51831C #1D831C
triadic
#51831C #1C5183 #831C51
tetradic
#51831C #1C8381 #4E1C83 #831C1D
square
#51831C #1C8381 #4E1C83 #831C1D
split-complementary
#51831C #1C1D83 #811C83
monochromatic
#131E06 #325111 #51831C #70B527 #8FD743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #51831c;
/* rgb */ color: rgb(81, 131, 28);
/* oklch */ color: oklch(55.4% 0.141 132.5);
Tailwind
colors: {
  custom: {
    50: '#86a761',
    500: '#51831c',
    950: '#000000',
  },
}
SCSS
$custom: #51831c;
$custom-light: #86a761;
$custom-dark: #000000;
JSON
{
  "hex": "#51831c",
  "rgb": {
    "r": 81,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 89.126,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55397,
    "c": 0.1411,
    "h": 132.5
  },
  "luminance": 0.18066
}

Semantic roles & 50–950 ramp

primary
#51831C
secondary
#7C45B6
accent
#40E891
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51831C

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

Preview Lab → · Contrast checker → · Palette generator →

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