#51701B#51701B

#51701B 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#51701B
RGBrgb(81, 112, 27)
HSLhsl(82, 61%, 27%)
HSVhsv(82, 76%, 44%)
CMYKcmyk(27.7%, 0%, 75.9%, 56.1%)
CIE-LABlab(43.38, -24.86, 41.11)
CIE-LCHlch(43.38, 48.04, 121.17°)
OKLaboklab(50.35% -0.0712 0.092)
OKLCHoklch(50.35% 0.116 127.8)
XYZxyz(9.3853, 13.4166, 3.1319)
Luminance0.1342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51701B #3A1B70
analogous
#70641B #51701B #27701B
triadic
#51701B #1B5170 #701B51
tetradic
#51701B #1B7064 #3A1B70 #701B27
square
#51701B #1B7064 #3A1B70 #701B27
split-complementary
#51701B #1B2770 #641B70
monochromatic
#121906 #2D3F0F #51701B #75A127 #97CF37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##51701B#FFFFFF#000000##FFFFFF
##51701B1.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)
#76680B
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#546B60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #51701b;
/* rgb */ color: rgb(81, 112, 27);
/* oklch */ color: oklch(50.4% 0.116 127.8);
Tailwind
colors: {
  custom: {
    50: '#85995e',
    500: '#51701b',
    950: '#000000',
  },
}
SCSS
$custom: #51701b;
$custom-light: #85995e;
$custom-dark: #000000;
JSON
{
  "hex": "#51701b",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 81.882,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50351,
    "c": 0.11633,
    "h": 127.8
  },
  "luminance": 0.13417
}

Semantic roles & 50–950 ramp

primary
#51701B
secondary
#6642A5
accent
#44E47E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51701B

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

Preview Lab → · Contrast checker → · Palette generator →

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