#405818#405818

#405818 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.6% C 0.094 H 127.7°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#405818
RGBrgb(64, 88, 24)
HSLhsl(83, 57%, 22%)
HSVhsv(83, 73%, 35%)
CMYKcmyk(27.3%, 0%, 72.7%, 65.5%)
CIE-LABlab(34.26, -20.15, 32.77)
CIE-LCHlch(34.26, 38.47, 121.59°)
OKLaboklab(42.65% -0.0575 0.0744)
OKLCHoklch(42.65% 0.094 127.7)
XYZxyz(5.7689, 8.1353, 2.1303)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405818 #301858
analogous
#585018 #405818 #205818
triadic
#405818 #184058 #581840
tetradic
#405818 #185850 #301858 #581820
square
#405818 #185850 #301858 #581820
split-complementary
#405818 #182058 #501858
monochromatic
#111807 #1D280B #405818 #638825 #86B832

Accessibility & contrast

On white

7.99
#405818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#405818 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405818
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405818#FFFFFF#000000##FFFFFF
##4058181.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520F
Deuteranopia (green-blind)
#59501D
Tritanopia (blue-blind)
#42544B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405818;
/* rgb */ color: rgb(64, 88, 24);
/* oklch */ color: oklch(42.6% 0.094 127.7);
Tailwind
colors: {
  custom: {
    50: '#778759',
    500: '#405818',
    950: '#000000',
  },
}
SCSS
$custom: #405818;
$custom-light: #778759;
$custom-dark: #000000;
JSON
{
  "hex": "#405818",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 24
  },
  "hsl": {
    "h": 82.5,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.09399,
    "h": 127.7
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#405818
secondary
#5C3D8F
accent
#47E081
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405818

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

Preview Lab → · Contrast checker → · Palette generator →

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