#405D0F#405D0F

#405D0F is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 43.9% C 0.107 H 128.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#405D0F
RGBrgb(64, 93, 15)
HSLhsl(82, 72%, 21%)
HSVhsv(82, 84%, 36%)
CMYKcmyk(31.2%, 0%, 83.9%, 63.5%)
CIE-LABlab(35.89, -23.33, 37.98)
CIE-LCHlch(35.89, 44.58, 121.56°)
OKLaboklab(43.95% -0.0669 0.0838)
OKLCHoklch(43.95% 0.107 128.6)
XYZxyz(6.1149, 8.9530, 1.8578)
Luminance0.0895 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D0F #2C0F5D
analogous
#5D530F #405D0F #195D0F
triadic
#405D0F #0F405D #5D0F40
tetradic
#405D0F #0F5D53 #2C0F5D #5D0F19
square
#405D0F #0F5D53 #2C0F5D #5D0F19
split-complementary
#405D0F #0F195D #530F5D
monochromatic
#121A04 #1C2806 #405D0F #649217 #89C620

Accessibility & contrast

On white

7.53
#405D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#405D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D0F
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D0F#FFFFFF#000000##FFFFFF
##405D0F1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5E5417
Tritanopia (blue-blind)
#42584F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405d0f;
/* rgb */ color: rgb(64, 93, 15);
/* oklch */ color: oklch(43.9% 0.107 128.6);
Tailwind
colors: {
  custom: {
    50: '#788b55',
    500: '#405d0f',
    950: '#000000',
  },
}
SCSS
$custom: #405d0f;
$custom-light: #788b55;
$custom-dark: #000000;
JSON
{
  "hex": "#405d0f",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 82.308,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43949,
    "c": 0.10722,
    "h": 128.6
  },
  "luminance": 0.08953
}

Semantic roles & 50–950 ramp

primary
#405D0F
secondary
#573196
accent
#39EF7D
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #405D0F

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

Preview Lab → · Contrast checker → · Palette generator →

#405D0F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva