#51701C#51701C

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

Color values

HEX#51701C
RGBrgb(81, 112, 28)
HSLhsl(82, 60%, 27%)
HSVhsv(82, 75%, 44%)
CMYKcmyk(27.7%, 0%, 75%, 56.1%)
CIE-LABlab(43.39, -24.80, 40.72)
CIE-LCHlch(43.39, 47.67, 121.34°)
OKLaboklab(50.36% -0.0709 0.0913)
OKLCHoklch(50.36% 0.116 127.8)
XYZxyz(9.3971, 13.4213, 3.1939)
Luminance0.1342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51701C #3B1C70
analogous
#70651C #51701C #27701C
triadic
#51701C #1C5170 #701C51
tetradic
#51701C #1C7065 #3B1C70 #701C27
square
#51701C #1C7065 #3B1C70 #701C27
split-complementary
#51701C #1C2770 #651C70
monochromatic
#121806 #2E3F10 #51701C #74A128 #97CD39

Accessibility & contrast

On white

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

On black

3.68
#51701C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##51701C#FFFFFF#000000##FFFFFF
##51701C1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680D
Deuteranopia (green-blind)
#726624
Tritanopia (blue-blind)
#546B60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #51701c;
/* rgb */ color: rgb(81, 112, 28);
/* oklch */ color: oklch(50.4% 0.116 127.8);
Tailwind
colors: {
  custom: {
    50: '#85995e',
    500: '#51701c',
    950: '#000000',
  },
}
SCSS
$custom: #51701c;
$custom-light: #85995e;
$custom-dark: #000000;
JSON
{
  "hex": "#51701c",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 82.143,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.50359,
    "c": 0.11565,
    "h": 127.8
  },
  "luminance": 0.13422
}

Semantic roles & 50–950 ramp

primary
#51701C
secondary
#6743A5
accent
#45E37F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51701C

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

Preview Lab → · Contrast checker → · Palette generator →

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