#405815#405815

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

Color values

HEX#405815
RGBrgb(64, 88, 21)
HSLhsl(81, 61%, 21%)
HSVhsv(81, 76%, 35%)
CMYKcmyk(27.3%, 0%, 76.1%, 65.5%)
CIE-LABlab(34.24, -20.39, 34.07)
CIE-LCHlch(34.24, 39.70, 120.89°)
OKLaboklab(42.62% -0.0584 0.0766)
OKLCHoklch(42.62% 0.096 127.3)
XYZxyz(5.7394, 8.1235, 1.9749)
Luminance0.0812 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405815 #2D1558
analogous
#584F15 #405815 #1F5815
triadic
#405815 #154058 #581540
tetradic
#405815 #15584F #2D1558 #58151F
square
#405815 #15584F #2D1558 #58151F
split-complementary
#405815 #151F58 #4F1558
monochromatic
#121906 #1C2709 #405815 #648921 #88BB2D

Accessibility & contrast

On white

8.00
#405815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#405815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405815
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405815#FFFFFF#000000##FFFFFF
##4058151.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520A
Deuteranopia (green-blind)
#5A501B
Tritanopia (blue-blind)
#43544B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #405815;
/* rgb */ color: rgb(64, 88, 21);
/* oklch */ color: oklch(42.6% 0.096 127.3);
Tailwind
colors: {
  custom: {
    50: '#778757',
    500: '#405815',
    950: '#000000',
  },
}
SCSS
$custom: #405815;
$custom-light: #778757;
$custom-dark: #000000;
JSON
{
  "hex": "#405815",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 21
  },
  "hsl": {
    "h": 81.493,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42617,
    "c": 0.09632,
    "h": 127.3
  },
  "luminance": 0.08124
}

Semantic roles & 50–950 ramp

primary
#405815
secondary
#583990
accent
#43E57D
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405815

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

Preview Lab → · Contrast checker → · Palette generator →

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