#51811F#51811F

#51811F is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.137 H 132.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#51811F
RGBrgb(81, 129, 31)
HSLhsl(89, 61%, 31%)
HSVhsv(89, 76%, 51%)
CMYKcmyk(37.2%, 0%, 76%, 49.4%)
CIE-LABlab(48.94, -32.70, 45.06)
CIE-LCHlch(48.94, 55.67, 125.97°)
OKLaboklab(54.89% -0.0922 0.1009)
OKLCHoklch(54.89% 0.137 132.4)
XYZxyz(11.4908, 17.5483, 4.0778)
Luminance0.1755 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51811F #4F1F81
analogous
#81801F #51811F #20811F
triadic
#51811F #1F5181 #811F51
tetradic
#51811F #1F8180 #4F1F81 #811F20
square
#51811F #1F8180 #4F1F81 #811F20
split-complementary
#51811F #1F2081 #801F81
monochromatic
#131E07 #325013 #51811F #70B22B #8FD347

Accessibility & contrast

On white

4.66
#51811F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#51811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #51811F
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51811F#FFFFFF#000000##FFFFFF
##51811F1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770C
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#527C6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #51811f;
/* rgb */ color: rgb(81, 129, 31);
/* oklch */ color: oklch(54.9% 0.137 132.4);
Tailwind
colors: {
  custom: {
    50: '#86a662',
    500: '#51811f',
    950: '#000000',
  },
}
SCSS
$custom: #51811f;
$custom-light: #86a662;
$custom-dark: #000000;
JSON
{
  "hex": "#51811f",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 89.388,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.13668,
    "h": 132.4
  },
  "luminance": 0.17549
}

Semantic roles & 50–950 ramp

primary
#51811F
secondary
#7D48B4
accent
#43E492
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51811F

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

Preview Lab → · Contrast checker → · Palette generator →

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