#405117#405117

#405117 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.7% C 0.085 H 124.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#405117
RGBrgb(64, 81, 23)
HSLhsl(78, 56%, 20%)
HSVhsv(78, 72%, 32%)
CMYKcmyk(21%, 0%, 71.6%, 68.2%)
CIE-LABlab(31.89, -16.47, 30.75)
CIE-LCHlch(31.89, 34.88, 118.18°)
OKLaboklab(40.72% -0.0474 0.07)
OKLCHoklch(40.72% 0.085 124.1)
XYZxyz(5.2115, 7.0367, 1.8941)
Luminance0.0704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405117 #281751
analogous
#514517 #405117 #235117
triadic
#405117 #174051 #511740
tetradic
#405117 #175145 #281751 #511723
square
#405117 #175145 #281751 #511723
split-complementary
#405117 #172351 #451751
monochromatic
#131807 #1A2109 #405117 #668125 #8BB032

Accessibility & contrast

On white

8.72
#405117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#405117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405117
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405117#FFFFFF#000000##FFFFFF
##4051171.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0F
Deuteranopia (green-blind)
#544B1B
Tritanopia (blue-blind)
#434D45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #405117;
/* rgb */ color: rgb(64, 81, 23);
/* oklch */ color: oklch(40.7% 0.085 124.1);
Tailwind
colors: {
  custom: {
    50: '#778257',
    500: '#405117',
    950: '#000000',
  },
}
SCSS
$custom: #405117;
$custom-light: #778257;
$custom-dark: #000000;
JSON
{
  "hex": "#405117",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 23
  },
  "hsl": {
    "h": 77.586,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40722,
    "c": 0.08452,
    "h": 124.1
  },
  "luminance": 0.07037
}

Semantic roles & 50–950 ramp

primary
#405117
secondary
#523C88
accent
#49DF75
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405117

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

Preview Lab → · Contrast checker → · Palette generator →

#405117 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva