#51801F#51801F

#51801F is a mid, vivid yellow-green. Relative luminance 0.173; OKLCH L 54.6% C 0.135 H 132.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#51801F
RGBrgb(81, 128, 31)
HSLhsl(89, 61%, 31%)
HSVhsv(89, 76%, 50%)
CMYKcmyk(36.7%, 0%, 75.8%, 49.8%)
CIE-LABlab(48.62, -32.24, 44.74)
CIE-LCHlch(48.62, 55.14, 125.78°)
OKLaboklab(54.62% -0.0909 0.1002)
OKLCHoklch(54.62% 0.135 132.2)
XYZxyz(11.3597, 17.2861, 4.0341)
Luminance0.1729 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51801F #4E1F80
analogous
#807E1F #51801F #20801F
triadic
#51801F #1F5180 #801F51
tetradic
#51801F #1F807E #4E1F80 #801F20
square
#51801F #1F807E #4E1F80 #801F20
split-complementary
#51801F #1F2080 #7E1F80
monochromatic
#131D07 #324F13 #51801F #70B12B #8FD247

Accessibility & contrast

On white

4.71
#51801F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#51801F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51801F
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51801F#FFFFFF#000000##FFFFFF
##51801F1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760C
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#527B6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #51801f;
/* rgb */ color: rgb(81, 128, 31);
/* oklch */ color: oklch(54.6% 0.135 132.2);
Tailwind
colors: {
  custom: {
    50: '#86a562',
    500: '#51801f',
    950: '#000000',
  },
}
SCSS
$custom: #51801f;
$custom-light: #86a562;
$custom-dark: #000000;
JSON
{
  "hex": "#51801f",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 89.072,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54621,
    "c": 0.13535,
    "h": 132.2
  },
  "luminance": 0.17287
}

Semantic roles & 50–950 ramp

primary
#51801F
secondary
#7C48B3
accent
#44E491
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51801F

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

Preview Lab → · Contrast checker → · Palette generator →

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