#51841F#51841F

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

Color values

HEX#51841F
RGBrgb(81, 132, 31)
HSLhsl(90, 62%, 32%)
HSVhsv(90, 77%, 52%)
CMYKcmyk(38.6%, 0%, 76.5%, 48.2%)
CIE-LABlab(49.92, -34.05, 46.02)
CIE-LCHlch(49.92, 57.25, 126.50°)
OKLaboklab(55.68% -0.0959 0.1029)
OKLCHoklch(55.68% 0.141 133)
XYZxyz(11.8918, 18.3503, 4.2114)
Luminance0.1835 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51841F #521F84
analogous
#84841F #51841F #1F8420
triadic
#51841F #1F5184 #841F51
tetradic
#51841F #1F8484 #521F84 #84201F
square
#51841F #1F8484 #521F84 #84201F
split-complementary
#51841F #201F84 #841F84
monochromatic
#142108 #335213 #51841F #6FB62B #8ED449

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51841F#FFFFFF#000000##000000
##51841F1.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)
#8A790A
Deuteranopia (green-blind)
#837529
Tritanopia (blue-blind)
#517E71
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #51841f;
/* rgb */ color: rgb(81, 132, 31);
/* oklch */ color: oklch(55.7% 0.141 133.0);
Tailwind
colors: {
  custom: {
    50: '#86a862',
    500: '#51841f',
    950: '#000000',
  },
}
SCSS
$custom: #51841f;
$custom-light: #86a862;
$custom-dark: #000000;
JSON
{
  "hex": "#51841f",
  "rgb": {
    "r": 81,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 90.297,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55683,
    "c": 0.14065,
    "h": 133
  },
  "luminance": 0.18351
}

Semantic roles & 50–950 ramp

primary
#51841F
secondary
#8048B7
accent
#43E595
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51841F

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

Preview Lab → · Contrast checker → · Palette generator →

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