#51891C#51891C

#51891C is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.0% C 0.149 H 133.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#51891C
RGBrgb(81, 137, 28)
HSLhsl(91, 66%, 32%)
HSVhsv(91, 80%, 54%)
CMYKcmyk(40.9%, 0%, 79.6%, 46.3%)
CIE-LABlab(51.52, -36.45, 48.61)
CIE-LCHlch(51.52, 60.76, 126.87°)
OKLaboklab(56.99% -0.1026 0.1079)
OKLCHoklch(56.99% 0.149 133.6)
XYZxyz(12.5484, 19.7239, 4.2443)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51891C #541C89
analogous
#87891C #51891C #1C891E
triadic
#51891C #1C5189 #891C51
tetradic
#51891C #1C8789 #541C89 #891E1C
square
#51891C #1C8789 #541C89 #891E1C
split-complementary
#51891C #1E1C89 #891C87
monochromatic
#152307 #335612 #51891C #6FBC26 #8ED946

Accessibility & contrast

On white

4.25
#51891C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#51891C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51891C
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51891C#FFFFFF#000000##000000
##51891C1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#518375
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #51891c;
/* rgb */ color: rgb(81, 137, 28);
/* oklch */ color: oklch(57.0% 0.149 133.6);
Tailwind
colors: {
  custom: {
    50: '#87ac62',
    500: '#51891c',
    950: '#000000',
  },
}
SCSS
$custom: #51891c;
$custom-light: #87ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#51891c",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 28
  },
  "hsl": {
    "h": 90.826,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56991,
    "c": 0.14884,
    "h": 133.6
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#51891C
secondary
#8246BB
accent
#3FE996
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51891C

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

Preview Lab → · Contrast checker → · Palette generator →

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