#51681F#51681F

#51681F is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 48.3% C 0.102 H 125.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#51681F
RGBrgb(81, 104, 31)
HSLhsl(79, 54%, 26%)
HSVhsv(79, 70%, 41%)
CMYKcmyk(22.1%, 0%, 70.2%, 59.2%)
CIE-LABlab(40.81, -20.50, 36.81)
CIE-LCHlch(40.81, 42.13, 119.11°)
OKLaboklab(48.28% -0.0589 0.0836)
OKLCHoklch(48.28% 0.102 125.1)
XYZxyz(8.5910, 11.7488, 3.1112)
Luminance0.1175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51681F #361F68
analogous
#685B1F #51681F #2D681F
triadic
#51681F #1F5168 #681F51
tetradic
#51681F #1F685B #361F68 #681F2D
square
#51681F #1F685B #361F68 #681F2D
split-complementary
#51681F #1F2D68 #5B1F68
monochromatic
#121807 #2C3911 #51681F #76972D #9AC53C

Accessibility & contrast

On white

6.27
#51681F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#51681F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51681F
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51681F#FFFFFF#000000##FFFFFF
##51681F1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6115
Deuteranopia (green-blind)
#6B6025
Tritanopia (blue-blind)
#556359
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #51681f;
/* rgb */ color: rgb(81, 104, 31);
/* oklch */ color: oklch(48.3% 0.102 125.1);
Tailwind
colors: {
  custom: {
    50: '#84935f',
    500: '#51681f',
    950: '#000000',
  },
}
SCSS
$custom: #51681f;
$custom-light: #84935f;
$custom-dark: #000000;
JSON
{
  "hex": "#51681f",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 31
  },
  "hsl": {
    "h": 78.904,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48278,
    "c": 0.10226,
    "h": 125.1
  },
  "luminance": 0.11749
}

Semantic roles & 50–950 ramp

primary
#51681F
secondary
#62469C
accent
#4ADD79
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D05
muted
#7C7E79

Preview Lab

Preview with #51681F

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

Preview Lab → · Contrast checker → · Palette generator →

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