#51801A#51801A

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

Color values

HEX#51801A
RGBrgb(81, 128, 26)
HSLhsl(88, 66%, 30%)
HSVhsv(88, 80%, 50%)
CMYKcmyk(36.7%, 0%, 79.7%, 49.8%)
CIE-LABlab(48.59, -32.55, 46.50)
CIE-LCHlch(48.59, 56.76, 124.99°)
OKLaboklab(54.59% -0.0922 0.1031)
OKLCHoklch(54.59% 0.138 131.8)
XYZxyz(11.2988, 17.2618, 3.7136)
Luminance0.1726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51801A #491A80
analogous
#807C1A #51801A #1E801A
triadic
#51801A #1A5180 #801A51
tetradic
#51801A #1A807C #491A80 #801A1E
square
#51801A #1A807C #491A80 #801A1E
split-complementary
#51801A #1A1E80 #7C1A80
monochromatic
#111A05 #314D10 #51801A #71B324 #90D83D

Accessibility & contrast

On white

4.72
#51801A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #51801A
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51801A#FFFFFF#000000##FFFFFF
##51801A1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51801a;
/* rgb */ color: rgb(81, 128, 26);
/* oklch */ color: oklch(54.6% 0.138 131.8);
Tailwind
colors: {
  custom: {
    50: '#86a55f',
    500: '#51801a',
    950: '#000000',
  },
}
SCSS
$custom: #51801a;
$custom-light: #86a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#51801a",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 26
  },
  "hsl": {
    "h": 87.647,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54587,
    "c": 0.13831,
    "h": 131.8
  },
  "luminance": 0.17262
}

Semantic roles & 50–950 ramp

primary
#51801A
secondary
#7642B4
accent
#3FE98D
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #51801A

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

Preview Lab → · Contrast checker → · Palette generator →

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