#51701F#51701F

#51701F is a mid, moderate yellow-green. Relative luminance 0.134; OKLCH L 50.4% C 0.114 H 128.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#51701F
RGBrgb(81, 112, 31)
HSLhsl(83, 57%, 28%)
HSVhsv(83, 72%, 44%)
CMYKcmyk(27.7%, 0%, 72.3%, 56.1%)
CIE-LABlab(43.41, -24.58, 39.50)
CIE-LCHlch(43.41, 46.53, 121.89°)
OKLaboklab(50.38% -0.0701 0.0893)
OKLCHoklch(50.38% 0.114 128.1)
XYZxyz(9.4348, 13.4364, 3.3925)
Luminance0.1344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51701F #3E1F70
analogous
#70661F #51701F #28701F
triadic
#51701F #1F5170 #701F51
tetradic
#51701F #1F7066 #3E1F70 #701F28
square
#51701F #1F7066 #3E1F70 #701F28
split-complementary
#51701F #1F2870 #661F70
monochromatic
#111807 #2E4012 #51701F #74A02C #95CA3F

Accessibility & contrast

On white

5.70
#51701F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#51701F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51701F
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51701F#FFFFFF#000000##FFFFFF
##51701F1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766813
Deuteranopia (green-blind)
#716626
Tritanopia (blue-blind)
#546B60
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #51701f;
/* rgb */ color: rgb(81, 112, 31);
/* oklch */ color: oklch(50.4% 0.114 128.1);
Tailwind
colors: {
  custom: {
    50: '#859960',
    500: '#51701f',
    950: '#000000',
  },
}
SCSS
$custom: #51701f;
$custom-light: #859960;
$custom-dark: #000000;
JSON
{
  "hex": "#51701f",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 82.963,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50384,
    "c": 0.1135,
    "h": 128.1
  },
  "luminance": 0.13437
}

Semantic roles & 50–950 ramp

primary
#51701F
secondary
#6A47A4
accent
#48E082
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51701F

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

Preview Lab → · Contrast checker → · Palette generator →

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