#405F1C#405F1C

#405F1C is a dark, moderate yellow-green. Relative luminance 0.094; OKLCH L 44.6% C 0.101 H 130.8°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#405F1C
RGBrgb(64, 95, 28)
HSLhsl(88, 54%, 24%)
HSVhsv(88, 71%, 37%)
CMYKcmyk(32.6%, 0%, 70.5%, 62.7%)
CIE-LABlab(36.66, -23.42, 33.46)
CIE-LCHlch(36.66, 40.84, 124.99°)
OKLaboklab(44.61% -0.066 0.0764)
OKLCHoklch(44.61% 0.101 130.8)
XYZxyz(6.4161, 9.3580, 2.5666)
Luminance0.0936 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F1C #3B1C5F
analogous
#5F5D1C #405F1C #1F5F1C
triadic
#405F1C #1C405F #5F1C40
tetradic
#405F1C #1C5F5D #3B1C5F #5F1C1F
square
#405F1C #1C5F5D #3B1C5F #5F1C1F
split-complementary
#405F1C #1C1F5F #5D1C5F
monochromatic
#101807 #20300E #405F1C #608E2A #80BE38

Accessibility & contrast

On white

7.31
#405F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#405F1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F1C
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F1C#FFFFFF#000000##FFFFFF
##405F1C1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635813
Deuteranopia (green-blind)
#5F5521
Tritanopia (blue-blind)
#415B51
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405f1c;
/* rgb */ color: rgb(64, 95, 28);
/* oklch */ color: oklch(44.6% 0.101 130.8);
Tailwind
colors: {
  custom: {
    50: '#778c5c',
    500: '#405f1c',
    950: '#000000',
  },
}
SCSS
$custom: #405f1c;
$custom-light: #778c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#405f1c",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 28
  },
  "hsl": {
    "h": 87.761,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.44606,
    "c": 0.101,
    "h": 130.8
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#405F1C
secondary
#684294
accent
#4ADE8E
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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