#51741A#51741A

#51741A is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.4% C 0.122 H 128.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#51741A
RGBrgb(81, 116, 26)
HSLhsl(83, 63%, 28%)
HSVhsv(83, 78%, 45%)
CMYKcmyk(30.2%, 0%, 77.6%, 54.5%)
CIE-LABlab(44.68, -26.89, 42.76)
CIE-LCHlch(44.68, 50.51, 122.17°)
OKLaboklab(51.4% -0.0768 0.0953)
OKLCHoklch(51.4% 0.122 128.9)
XYZxyz(9.8252, 14.3144, 3.2224)
Luminance0.1431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51741A #3D1A74
analogous
#746A1A #51741A #24741A
triadic
#51741A #1A5174 #741A51
tetradic
#51741A #1A746A #3D1A74 #741A24
square
#51741A #1A746A #3D1A74 #741A24
split-complementary
#51741A #1A2474 #6A1A74
monochromatic
#111906 #2E420F #51741A #74A625 #95D236

Accessibility & contrast

On white

5.44
#51741A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#51741A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51741A
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51741A#FFFFFF#000000##FFFFFF
##51741A1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B07
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#546F63
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #51741a;
/* rgb */ color: rgb(81, 116, 26);
/* oklch */ color: oklch(51.4% 0.122 128.9);
Tailwind
colors: {
  custom: {
    50: '#859c5e',
    500: '#51741a',
    950: '#000000',
  },
}
SCSS
$custom: #51741a;
$custom-light: #859c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#51741a",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 26
  },
  "hsl": {
    "h": 83.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51402,
    "c": 0.1224,
    "h": 128.9
  },
  "luminance": 0.14315
}

Semantic roles & 50–950 ramp

primary
#51741A
secondary
#6941A9
accent
#41E682
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51741A

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

Preview Lab → · Contrast checker → · Palette generator →

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