#51851B#51851B

#51851B is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 55.9% C 0.144 H 132.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#51851B
RGBrgb(81, 133, 27)
HSLhsl(89, 66%, 31%)
HSVhsv(89, 80%, 52%)
CMYKcmyk(39.1%, 0%, 79.7%, 47.8%)
CIE-LABlab(50.22, -34.75, 47.71)
CIE-LCHlch(50.22, 59.02, 126.07°)
OKLaboklab(55.92% -0.098 0.1058)
OKLCHoklch(55.92% 0.144 132.8)
XYZxyz(11.9785, 18.6030, 3.9963)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51851B #4F1B85
analogous
#85841B #51851B #1C851B
triadic
#51851B #1B5185 #851B51
tetradic
#51851B #1B8584 #4F1B85 #851B1C
square
#51851B #1B8584 #4F1B85 #851B1C
split-complementary
#51851B #1B1C85 #841B85
monochromatic
#131F06 #325211 #51851B #70B825 #8FD942

Accessibility & contrast

On white

4.45
#51851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#51851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51851B
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51851B#FFFFFF#000000##000000
##51851B1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#527F71
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #51851b;
/* rgb */ color: rgb(81, 133, 27);
/* oklch */ color: oklch(55.9% 0.144 132.8);
Tailwind
colors: {
  custom: {
    50: '#87a961',
    500: '#51851b',
    950: '#000000',
  },
}
SCSS
$custom: #51851b;
$custom-light: #87a961;
$custom-dark: #000000;
JSON
{
  "hex": "#51851b",
  "rgb": {
    "r": 81,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 89.434,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55922,
    "c": 0.14424,
    "h": 132.8
  },
  "luminance": 0.18604
}

Semantic roles & 50–950 ramp

primary
#51851B
secondary
#7D44B8
accent
#3FE992
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #51851B

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

Preview Lab → · Contrast checker → · Palette generator →

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