#51891B#51891B

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

Color values

HEX#51891B
RGBrgb(81, 137, 27)
HSLhsl(91, 67%, 32%)
HSVhsv(91, 80%, 54%)
CMYKcmyk(40.9%, 0%, 80.3%, 46.3%)
CIE-LABlab(51.52, -36.51, 48.93)
CIE-LCHlch(51.52, 61.05, 126.73°)
OKLaboklab(56.98% -0.1028 0.1084)
OKLCHoklch(56.98% 0.149 133.5)
XYZxyz(12.5366, 19.7192, 4.1823)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51891B #531B89
analogous
#88891B #51891B #1B891C
triadic
#51891B #1B5189 #891B51
tetradic
#51891B #1B8889 #531B89 #891C1B
square
#51891B #1B8889 #531B89 #891C1B
split-complementary
#51891B #1C1B89 #891B88
monochromatic
#152307 #335611 #51891B #6FBC25 #8EDA44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51891B#FFFFFF#000000##000000
##51891B1.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)
#877927
Tritanopia (blue-blind)
#518375
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #51891b;
/* rgb */ color: rgb(81, 137, 27);
/* oklch */ color: oklch(57.0% 0.149 133.5);
Tailwind
colors: {
  custom: {
    50: '#87ac61',
    500: '#51891b',
    950: '#000000',
  },
}
SCSS
$custom: #51891b;
$custom-light: #87ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#51891b",
  "rgb": {
    "r": 81,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 90.545,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.14937,
    "h": 133.5
  },
  "luminance": 0.1972
}

Semantic roles & 50–950 ramp

primary
#51891B
secondary
#8144BC
accent
#3EEA95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51891B

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

Preview Lab → · Contrast checker → · Palette generator →

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