#51841B#51841B

#51841B is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.7% C 0.143 H 132.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#51841B
RGBrgb(81, 132, 27)
HSLhsl(89, 66%, 31%)
HSVhsv(89, 80%, 52%)
CMYKcmyk(38.6%, 0%, 79.5%, 48.2%)
CIE-LABlab(49.89, -34.30, 47.40)
CIE-LCHlch(49.89, 58.51, 125.89°)
OKLaboklab(55.66% -0.0968 0.1052)
OKLCHoklch(55.66% 0.143 132.6)
XYZxyz(11.8423, 18.3305, 3.9509)
Luminance0.1833 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51841B #4E1B84
analogous
#84821B #51841B #1C841B
triadic
#51841B #1B5184 #841B51
tetradic
#51841B #1B8482 #4E1B84 #841B1C
square
#51841B #1B8482 #4E1B84 #841B1C
split-complementary
#51841B #1B1C84 #821B84
monochromatic
#131E06 #325111 #51841B #70B725 #8FD841

Accessibility & contrast

On white

4.50
#51841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#51841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51841B
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51841B#FFFFFF#000000##000000
##51841B1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#837526
Tritanopia (blue-blind)
#527E70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #51841b;
/* rgb */ color: rgb(81, 132, 27);
/* oklch */ color: oklch(55.7% 0.143 132.6);
Tailwind
colors: {
  custom: {
    50: '#87a861',
    500: '#51841b',
    950: '#000000',
  },
}
SCSS
$custom: #51841b;
$custom-light: #87a861;
$custom-dark: #000000;
JSON
{
  "hex": "#51841b",
  "rgb": {
    "r": 81,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 89.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55656,
    "c": 0.14295,
    "h": 132.6
  },
  "luminance": 0.18331
}

Semantic roles & 50–950 ramp

primary
#51841B
secondary
#7C43B7
accent
#3FE991
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #51841B

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

Preview Lab → · Contrast checker → · Palette generator →

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