#405B22#405B22

#405B22 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.6% C 0.089 H 130.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#405B22
RGBrgb(64, 91, 34)
HSLhsl(88, 46%, 25%)
HSVhsv(88, 63%, 36%)
CMYKcmyk(29.7%, 0%, 62.6%, 64.3%)
CIE-LABlab(35.38, -20.78, 29.08)
CIE-LCHlch(35.38, 35.74, 125.54°)
OKLaboklab(43.58% -0.0582 0.068)
OKLCHoklch(43.58% 0.089 130.6)
XYZxyz(6.1441, 8.6875, 2.8662)
Luminance0.0869 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B22 #3D225B
analogous
#5B5A22 #405B22 #245B22
triadic
#405B22 #22405B #5B2240
tetradic
#405B22 #225B5A #3D225B #5B2224
square
#405B22 #225B5A #3D225B #5B2224
split-complementary
#405B22 #22245B #5A225B
monochromatic
#101608 #212E11 #405B22 #5F8833 #7FB443

Accessibility & contrast

On white

7.67
#405B22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#405B22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B22
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B22#FFFFFF#000000##FFFFFF
##405B221.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F541C
Deuteranopia (green-blind)
#5B5326
Tritanopia (blue-blind)
#41574F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b22;
/* rgb */ color: rgb(64, 91, 34);
/* oklch */ color: oklch(43.6% 0.089 130.6);
Tailwind
colors: {
  custom: {
    50: '#77895f',
    500: '#405b22',
    950: '#000000',
  },
}
SCSS
$custom: #405b22;
$custom-light: #77895f;
$custom-dark: #000000;
JSON
{
  "hex": "#405b22",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 34
  },
  "hsl": {
    "h": 88.421,
    "s": 45.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.43579,
    "c": 0.08947,
    "h": 130.6
  },
  "luminance": 0.08688
}

Semantic roles & 50–950 ramp

primary
#405B22
secondary
#6B4A8F
accent
#53D590
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B05
muted
#7B7C79

Preview Lab

Preview with #405B22

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

Preview Lab → · Contrast checker → · Palette generator →

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