#51812E#51812E

#51812E is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 55.0% C 0.126 H 134.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#51812E
RGBrgb(81, 129, 46)
HSLhsl(95, 47%, 34%)
HSVhsv(95, 64%, 51%)
CMYKcmyk(37.2%, 0%, 64.3%, 49.4%)
CIE-LABlab(49.06, -31.47, 38.83)
CIE-LCHlch(49.06, 49.98, 129.02°)
OKLaboklab(55.02% -0.0876 0.0899)
OKLCHoklch(55.02% 0.126 134.3)
XYZxyz(11.7365, 17.6466, 5.3720)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51812E #5E2E81
analogous
#7B812E #51812E #2E8135
triadic
#51812E #2E5181 #812E51
tetradic
#51812E #2E7B81 #5E2E81 #81352E
square
#51812E #2E7B81 #5E2E81 #81352E
split-complementary
#51812E #352E81 #812E7B
monochromatic
#18270E #35541E #51812E #6DAE3E #8DC762

Accessibility & contrast

On white

4.64
#51812E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#51812E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #51812E
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51812E#FFFFFF#000000##FFFFFF
##51812E1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867724
Deuteranopia (green-blind)
#7F7334
Tritanopia (blue-blind)
#517C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #51812e;
/* rgb */ color: rgb(81, 129, 46);
/* oklch */ color: oklch(55.0% 0.126 134.3);
Tailwind
colors: {
  custom: {
    50: '#85a66a',
    500: '#51812e',
    950: '#000000',
  },
}
SCSS
$custom: #51812e;
$custom-light: #85a66a;
$custom-dark: #000000;
JSON
{
  "hex": "#51812e",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 94.699,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.55024,
    "c": 0.12555,
    "h": 134.3
  },
  "luminance": 0.17647
}

Semantic roles & 50–950 ramp

primary
#51812E
secondary
#8C5DAE
accent
#51D79E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #51812E

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

Preview Lab → · Contrast checker → · Palette generator →

#51812E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva