#405918#405918

#405918 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.9% C 0.095 H 128.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#405918
RGBrgb(64, 89, 24)
HSLhsl(83, 58%, 22%)
HSVhsv(83, 73%, 35%)
CMYKcmyk(28.1%, 0%, 73%, 65.1%)
CIE-LABlab(34.60, -20.68, 33.12)
CIE-LCHlch(34.60, 39.04, 121.98°)
OKLaboklab(42.92% -0.0589 0.0751)
OKLCHoklch(42.92% 0.095 128.1)
XYZxyz(5.8516, 8.3006, 2.1579)
Luminance0.0830 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405918 #311859
analogous
#595218 #405918 #205918
triadic
#405918 #184059 #591840
tetradic
#405918 #185952 #311859 #591820
square
#405918 #185952 #311859 #591820
split-complementary
#405918 #182059 #521859
monochromatic
#111806 #1D290B #405918 #638925 #85B932

Accessibility & contrast

On white

7.89
#405918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#405918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405918
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405918#FFFFFF#000000##FFFFFF
##4059181.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E520F
Deuteranopia (green-blind)
#5A511D
Tritanopia (blue-blind)
#42554C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405918;
/* rgb */ color: rgb(64, 89, 24);
/* oklch */ color: oklch(42.9% 0.095 128.1);
Tailwind
colors: {
  custom: {
    50: '#778859',
    500: '#405918',
    950: '#000000',
  },
}
SCSS
$custom: #405918;
$custom-light: #778859;
$custom-dark: #000000;
JSON
{
  "hex": "#405918",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 24
  },
  "hsl": {
    "h": 83.077,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42919,
    "c": 0.09545,
    "h": 128.1
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#405918
secondary
#5D3D90
accent
#47E182
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405918

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

Preview Lab → · Contrast checker → · Palette generator →

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