#51751D#51751D

#51751D is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.7% C 0.122 H 129.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#51751D
RGBrgb(81, 117, 29)
HSLhsl(85, 60%, 29%)
HSVhsv(85, 75%, 46%)
CMYKcmyk(30.8%, 0%, 75.2%, 54.1%)
CIE-LABlab(45.03, -27.19, 41.95)
CIE-LCHlch(45.03, 49.99, 122.95°)
OKLaboklab(51.69% -0.0774 0.0941)
OKLCHoklch(51.69% 0.122 129.4)
XYZxyz(9.9764, 14.5603, 3.4470)
Luminance0.1456 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51751D #411D75
analogous
#756D1D #51751D #25751D
triadic
#51751D #1D5175 #751D51
tetradic
#51751D #1D756D #411D75 #751D25
square
#51751D #1D756D #411D75 #751D25
split-complementary
#51751D #1D2575 #6D1D75
monochromatic
#111906 #2F4411 #51751D #73A629 #93CF3D

Accessibility & contrast

On white

5.37
#51751D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#51751D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51751D
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51751D#FFFFFF#000000##FFFFFF
##51751D1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C0D
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#537064
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #51751d;
/* rgb */ color: rgb(81, 117, 29);
/* oklch */ color: oklch(51.7% 0.122 129.4);
Tailwind
colors: {
  custom: {
    50: '#859d5f',
    500: '#51751d',
    950: '#000000',
  },
}
SCSS
$custom: #51751d;
$custom-light: #859d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#51751d",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 29
  },
  "hsl": {
    "h": 84.545,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51689,
    "c": 0.12182,
    "h": 129.4
  },
  "luminance": 0.14561
}

Semantic roles & 50–950 ramp

primary
#51751D
secondary
#6E45A9
accent
#44E385
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #51751D

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

Preview Lab → · Contrast checker → · Palette generator →

#51751D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva