#51741F#51741F

#51741F is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.4% C 0.119 H 129.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#51741F
RGBrgb(81, 116, 31)
HSLhsl(85, 58%, 29%)
HSVhsv(85, 73%, 45%)
CMYKcmyk(30.2%, 0%, 73.3%, 54.5%)
CIE-LABlab(44.71, -26.56, 40.83)
CIE-LCHlch(44.71, 48.71, 123.04°)
OKLaboklab(51.44% -0.0755 0.0921)
OKLCHoklch(51.44% 0.119 129.4)
XYZxyz(9.8860, 14.3388, 3.5429)
Luminance0.1434 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51741F #421F74
analogous
#746D1F #51741F #27741F
triadic
#51741F #1F5174 #741F51
tetradic
#51741F #1F746D #421F74 #741F27
square
#51741F #1F746D #421F74 #741F27
split-complementary
#51741F #1F2774 #6D1F74
monochromatic
#111806 #2F4412 #51741F #73A42C #93CC41

Accessibility & contrast

On white

5.43
#51741F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#51741F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51741F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51741F#FFFFFF#000000##FFFFFF
##51741F1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B11
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#536F63
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #51741f;
/* rgb */ color: rgb(81, 116, 31);
/* oklch */ color: oklch(51.4% 0.119 129.4);
Tailwind
colors: {
  custom: {
    50: '#859c60',
    500: '#51741f',
    950: '#000000',
  },
}
SCSS
$custom: #51741f;
$custom-light: #859c60;
$custom-dark: #000000;
JSON
{
  "hex": "#51741f",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 31
  },
  "hsl": {
    "h": 84.706,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51441,
    "c": 0.11906,
    "h": 129.4
  },
  "luminance": 0.14339
}

Semantic roles & 50–950 ramp

primary
#51741F
secondary
#6F47A8
accent
#47E186
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51741F

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

Preview Lab → · Contrast checker → · Palette generator →

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