#51831F#51831F

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

Color values

HEX#51831F
RGBrgb(81, 131, 31)
HSLhsl(90, 62%, 32%)
HSVhsv(90, 76%, 51%)
CMYKcmyk(38.2%, 0%, 76.3%, 48.6%)
CIE-LABlab(49.59, -33.60, 45.70)
CIE-LCHlch(49.59, 56.72, 126.33°)
OKLaboklab(55.42% -0.0946 0.1022)
OKLCHoklch(55.42% 0.139 132.8)
XYZxyz(11.7568, 18.0803, 4.1665)
Luminance0.1808 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51831F #511F83
analogous
#83831F #51831F #1F831F
triadic
#51831F #1F5183 #831F51
tetradic
#51831F #1F8383 #511F83 #831F1F
square
#51831F #1F8383 #511F83 #831F1F
split-complementary
#51831F #1F1F83 #831F83
monochromatic
#142008 #325213 #51831F #70B42B #8ED449

Accessibility & contrast

On white

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

On black

4.62
#51831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51831F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51831F#FFFFFF#000000##000000
##51831F1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89780A
Deuteranopia (green-blind)
#827529
Tritanopia (blue-blind)
#527D70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #51831f;
/* rgb */ color: rgb(81, 131, 31);
/* oklch */ color: oklch(55.4% 0.139 132.8);
Tailwind
colors: {
  custom: {
    50: '#86a762',
    500: '#51831f',
    950: '#000000',
  },
}
SCSS
$custom: #51831f;
$custom-light: #86a762;
$custom-dark: #000000;
JSON
{
  "hex": "#51831f",
  "rgb": {
    "r": 81,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 90,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55418,
    "c": 0.13933,
    "h": 132.8
  },
  "luminance": 0.18081
}

Semantic roles & 50–950 ramp

primary
#51831F
secondary
#7F48B6
accent
#43E594
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51831F

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

Preview Lab → · Contrast checker → · Palette generator →

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