#51701A#51701A

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

Color values

HEX#51701A
RGBrgb(81, 112, 26)
HSLhsl(82, 62%, 27%)
HSVhsv(82, 77%, 44%)
CMYKcmyk(27.7%, 0%, 76.8%, 56.1%)
CIE-LABlab(43.38, -24.93, 41.49)
CIE-LCHlch(43.38, 48.40, 121.00°)
OKLaboklab(50.34% -0.0715 0.0926)
OKLCHoklch(50.34% 0.117 127.7)
XYZxyz(9.3740, 13.4121, 3.0720)
Luminance0.1341 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51701A #391A70
analogous
#70641A #51701A #26701A
triadic
#51701A #1A5170 #701A51
tetradic
#51701A #1A7064 #391A70 #701A26
square
#51701A #1A7064 #391A70 #701A26
split-complementary
#51701A #1A2670 #641A70
monochromatic
#121906 #2D3E0E #51701A #75A226 #98D034

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51701A#FFFFFF#000000##FFFFFF
##51701A1.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)
#766809
Deuteranopia (green-blind)
#726622
Tritanopia (blue-blind)
#546B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #51701a;
/* rgb */ color: rgb(81, 112, 26);
/* oklch */ color: oklch(50.3% 0.117 127.7);
Tailwind
colors: {
  custom: {
    50: '#85995d',
    500: '#51701a',
    950: '#000000',
  },
}
SCSS
$custom: #51701a;
$custom-light: #85995d;
$custom-dark: #000000;
JSON
{
  "hex": "#51701a",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 26
  },
  "hsl": {
    "h": 81.628,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.50343,
    "c": 0.11699,
    "h": 127.7
  },
  "luminance": 0.13412
}

Semantic roles & 50–950 ramp

primary
#51701A
secondary
#6541A5
accent
#42E57D
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #51701A

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

Preview Lab → · Contrast checker → · Palette generator →

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