#51741B#51741B

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

Color values

HEX#51741B
RGBrgb(81, 116, 27)
HSLhsl(84, 62%, 28%)
HSVhsv(84, 77%, 45%)
CMYKcmyk(30.2%, 0%, 76.7%, 54.5%)
CIE-LABlab(44.69, -26.83, 42.39)
CIE-LCHlch(44.69, 50.17, 122.33°)
OKLaboklab(51.41% -0.0766 0.0947)
OKLCHoklch(51.41% 0.122 129)
XYZxyz(9.8365, 14.3190, 3.2823)
Luminance0.1432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51741B #3E1B74
analogous
#746B1B #51741B #24741B
triadic
#51741B #1B5174 #741B51
tetradic
#51741B #1B746B #3E1B74 #741B24
square
#51741B #1B746B #3E1B74 #741B24
split-complementary
#51741B #1B2474 #6B1B74
monochromatic
#111906 #2E420F #51741B #74A627 #95D139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51741B#FFFFFF#000000##FFFFFF
##51741B1.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)
#7A6B09
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#546F63
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #51741b;
/* rgb */ color: rgb(81, 116, 27);
/* oklch */ color: oklch(51.4% 0.122 129.0);
Tailwind
colors: {
  custom: {
    50: '#859c5e',
    500: '#51741b',
    950: '#000000',
  },
}
SCSS
$custom: #51741b;
$custom-light: #859c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#51741b",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 27
  },
  "hsl": {
    "h": 83.596,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51409,
    "c": 0.12177,
    "h": 129
  },
  "luminance": 0.14319
}

Semantic roles & 50–950 ramp

primary
#51741B
secondary
#6A42A9
accent
#42E583
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51741B

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

Preview Lab → · Contrast checker → · Palette generator →

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