#405115#405115

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

Color values

HEX#405115
RGBrgb(64, 81, 21)
HSLhsl(77, 59%, 20%)
HSVhsv(77, 74%, 32%)
CMYKcmyk(21%, 0%, 74.1%, 68.2%)
CIE-LABlab(31.87, -16.63, 31.66)
CIE-LCHlch(31.87, 35.76, 117.71°)
OKLaboklab(40.7% -0.0481 0.0716)
OKLCHoklch(40.7% 0.086 123.9)
XYZxyz(5.1922, 7.0290, 1.7925)
Luminance0.0703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405115 #261551
analogous
#514415 #405115 #225115
triadic
#405115 #154051 #511540
tetradic
#405115 #155144 #261551 #511522
square
#405115 #155144 #261551 #511522
split-complementary
#405115 #152251 #441551
monochromatic
#131806 #1A2008 #405115 #668222 #8DB22E

Accessibility & contrast

On white

8.73
#405115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405115
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405115#FFFFFF#000000##FFFFFF
##4051151.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405115;
/* rgb */ color: rgb(64, 81, 21);
/* oklch */ color: oklch(40.7% 0.086 123.9);
Tailwind
colors: {
  custom: {
    50: '#778156',
    500: '#405115',
    950: '#000000',
  },
}
SCSS
$custom: #405115;
$custom-light: #778156;
$custom-dark: #000000;
JSON
{
  "hex": "#405115",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 77,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.40702,
    "c": 0.08621,
    "h": 123.9
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#405115
secondary
#503989
accent
#46E272
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405115

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

Preview Lab → · Contrast checker → · Palette generator →

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