#51801C#51801C

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

Color values

HEX#51801C
RGBrgb(81, 128, 28)
HSLhsl(88, 64%, 31%)
HSVhsv(88, 78%, 50%)
CMYKcmyk(36.7%, 0%, 78.1%, 49.8%)
CIE-LABlab(48.60, -32.43, 45.82)
CIE-LCHlch(48.60, 56.13, 125.29°)
OKLaboklab(54.6% -0.0917 0.102)
OKLCHoklch(54.6% 0.137 132)
XYZxyz(11.3220, 17.2711, 3.8355)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51801C #4B1C80
analogous
#807D1C #51801C #1F801C
triadic
#51801C #1C5180 #801C51
tetradic
#51801C #1C807D #4B1C80 #801C1F
square
#51801C #1C807D #4B1C80 #801C1F
split-complementary
#51801C #1C1F80 #7D1C80
monochromatic
#111C06 #314E11 #51801C #71B227 #90D541

Accessibility & contrast

On white

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

On black

4.45
#51801C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##51801C#FFFFFF#000000##FFFFFF
##51801C1.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867605
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#527A6D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #51801c;
/* rgb */ color: rgb(81, 128, 28);
/* oklch */ color: oklch(54.6% 0.137 132.0);
Tailwind
colors: {
  custom: {
    50: '#86a560',
    500: '#51801c',
    950: '#000000',
  },
}
SCSS
$custom: #51801c;
$custom-light: #86a560;
$custom-dark: #000000;
JSON
{
  "hex": "#51801c",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 88.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.546,
    "c": 0.13717,
    "h": 132
  },
  "luminance": 0.17272
}

Semantic roles & 50–950 ramp

primary
#51801C
secondary
#7944B3
accent
#41E78F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #51801C

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

Preview Lab → · Contrast checker → · Palette generator →

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