#405B0F#405B0F

#405B0F is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.4% C 0.104 H 127.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#405B0F
RGBrgb(64, 91, 15)
HSLhsl(81, 72%, 21%)
HSVhsv(81, 84%, 36%)
CMYKcmyk(29.7%, 0%, 83.5%, 64.3%)
CIE-LABlab(35.22, -22.32, 37.35)
CIE-LCHlch(35.22, 43.51, 120.86°)
OKLaboklab(43.4% -0.0642 0.0824)
OKLCHoklch(43.4% 0.104 127.9)
XYZxyz(5.9417, 8.6065, 1.8000)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B0F #2A0F5B
analogous
#5B500F #405B0F #1A5B0F
triadic
#405B0F #0F405B #5B0F40
tetradic
#405B0F #0F5B50 #2A0F5B #5B0F1A
square
#405B0F #0F5B50 #2A0F5B #5B0F1A
split-complementary
#405B0F #0F1A5B #500F5B
monochromatic
#121A04 #1B2606 #405B0F #659018 #8AC420

Accessibility & contrast

On white

7.72
#405B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#405B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B0F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B0F#FFFFFF#000000##FFFFFF
##405B0F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5C5217
Tritanopia (blue-blind)
#43564D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b0f;
/* rgb */ color: rgb(64, 91, 15);
/* oklch */ color: oklch(43.4% 0.104 127.9);
Tailwind
colors: {
  custom: {
    50: '#788955',
    500: '#405b0f',
    950: '#000000',
  },
}
SCSS
$custom: #405b0f;
$custom-light: #788955;
$custom-dark: #000000;
JSON
{
  "hex": "#405b0f",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 81.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.43398,
    "c": 0.10448,
    "h": 127.9
  },
  "luminance": 0.08607
}

Semantic roles & 50–950 ramp

primary
#405B0F
secondary
#553195
accent
#39EE7A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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