#51842E#51842E

#51842E is a mid, vivid yellow-green. Relative luminance 0.184; OKLCH L 55.8% C 0.130 H 134.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#51842E
RGBrgb(81, 132, 46)
HSLhsl(96, 48%, 35%)
HSVhsv(96, 65%, 52%)
CMYKcmyk(38.6%, 0%, 65.2%, 48.2%)
CIE-LABlab(50.04, -32.85, 39.90)
CIE-LCHlch(50.04, 51.68, 129.47°)
OKLaboklab(55.82% -0.0914 0.0922)
OKLCHoklch(55.82% 0.13 134.8)
XYZxyz(12.1375, 18.4485, 5.5056)
Luminance0.1845 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51842E #612E84
analogous
#7C842E #51842E #2E8436
triadic
#51842E #2E5184 #842E51
tetradic
#51842E #2E7C84 #612E84 #84362E
square
#51842E #2E7C84 #612E84 #84362E
split-complementary
#51842E #362E84 #842E7C
monochromatic
#19290E #35571E #51842E #6DB13E #8DC964

Accessibility & contrast

On white

4.48
#51842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#51842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51842E
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51842E#FFFFFF#000000##000000
##51842E1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A24
Deuteranopia (green-blind)
#827535
Tritanopia (blue-blind)
#507F72
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #51842e;
/* rgb */ color: rgb(81, 132, 46);
/* oklch */ color: oklch(55.8% 0.130 134.8);
Tailwind
colors: {
  custom: {
    50: '#86a86b',
    500: '#51842e',
    950: '#000000',
  },
}
SCSS
$custom: #51842e;
$custom-light: #86a86b;
$custom-dark: #000000;
JSON
{
  "hex": "#51842e",
  "rgb": {
    "r": 81,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 95.581,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.55817,
    "c": 0.12981,
    "h": 134.8
  },
  "luminance": 0.18449
}

Semantic roles & 50–950 ramp

primary
#51842E
secondary
#8E5EB0
accent
#50D8A1
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #51842E

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

Preview Lab → · Contrast checker → · Palette generator →

#51842E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva