#51831A#51831A

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

Color values

HEX#51831A
RGBrgb(81, 131, 26)
HSLhsl(89, 67%, 31%)
HSVhsv(89, 80%, 51%)
CMYKcmyk(38.2%, 0%, 80.2%, 48.6%)
CIE-LABlab(49.56, -33.91, 47.42)
CIE-LCHlch(49.56, 58.30, 125.57°)
OKLaboklab(55.38% -0.0958 0.1051)
OKLCHoklch(55.38% 0.142 132.4)
XYZxyz(11.6959, 18.0560, 3.8460)
Luminance0.1806 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51831A #4C1A83
analogous
#83801A #51831A #1D831A
triadic
#51831A #1A5183 #831A51
tetradic
#51831A #1A8380 #4C1A83 #831A1D
square
#51831A #1A8380 #4C1A83 #831A1D
split-complementary
#51831A #1A1D83 #801A83
monochromatic
#121D06 #315010 #51831A #71B624 #8FD93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51831A#FFFFFF#000000##000000
##51831A1.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)
#897800
Deuteranopia (green-blind)
#827425
Tritanopia (blue-blind)
#527D6F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #51831a;
/* rgb */ color: rgb(81, 131, 26);
/* oklch */ color: oklch(55.4% 0.142 132.4);
Tailwind
colors: {
  custom: {
    50: '#87a760',
    500: '#51831a',
    950: '#000000',
  },
}
SCSS
$custom: #51831a;
$custom-light: #87a760;
$custom-dark: #000000;
JSON
{
  "hex": "#51831a",
  "rgb": {
    "r": 81,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 88.571,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55384,
    "c": 0.1422,
    "h": 132.4
  },
  "luminance": 0.18057
}

Semantic roles & 50–950 ramp

primary
#51831A
secondary
#7A42B7
accent
#3EEA90
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #51831A

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

Preview Lab → · Contrast checker → · Palette generator →

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