#51741C#51741C

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

Color values

HEX#51741C
RGBrgb(81, 116, 28)
HSLhsl(84, 61%, 28%)
HSVhsv(84, 76%, 45%)
CMYKcmyk(30.2%, 0%, 75.9%, 54.5%)
CIE-LABlab(44.69, -26.77, 42.01)
CIE-LCHlch(44.69, 49.81, 122.50°)
OKLaboklab(51.42% -0.0763 0.094)
OKLCHoklch(51.42% 0.121 129.1)
XYZxyz(9.8483, 14.3237, 3.3443)
Luminance0.1432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51741C #3F1C74
analogous
#746B1C #51741C #25741C
triadic
#51741C #1C5174 #741C51
tetradic
#51741C #1C746B #3F1C74 #741C25
square
#51741C #1C746B #3F1C74 #741C25
split-complementary
#51741C #1C2574 #6B1C74
monochromatic
#111906 #2F4310 #51741C #73A528 #94D03B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51741C#FFFFFF#000000##FFFFFF
##51741C1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51741c;
/* rgb */ color: rgb(81, 116, 28);
/* oklch */ color: oklch(51.4% 0.121 129.1);
Tailwind
colors: {
  custom: {
    50: '#859c5f',
    500: '#51741c',
    950: '#000000',
  },
}
SCSS
$custom: #51741c;
$custom-light: #859c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#51741c",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 28
  },
  "hsl": {
    "h": 83.864,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51417,
    "c": 0.12112,
    "h": 129.1
  },
  "luminance": 0.14324
}

Semantic roles & 50–950 ramp

primary
#51741C
secondary
#6C43A8
accent
#44E483
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51741C

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

Preview Lab → · Contrast checker → · Palette generator →

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