#406022#406022

#406022 is a dark, moderate yellow-green. Relative luminance 0.096; OKLCH L 44.9% C 0.097 H 132.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#406022
RGBrgb(64, 96, 34)
HSLhsl(91, 48%, 25%)
HSVhsv(91, 65%, 38%)
CMYKcmyk(33.3%, 0%, 64.6%, 62.4%)
CIE-LABlab(37.06, -23.35, 30.99)
CIE-LCHlch(37.06, 38.80, 126.99°)
OKLaboklab(44.95% -0.0653 0.072)
OKLCHoklch(44.95% 0.097 132.2)
XYZxyz(6.5859, 9.5710, 3.0135)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406022 #422260
analogous
#5F6022 #406022 #226023
triadic
#406022 #224060 #602240
tetradic
#406022 #225F60 #422260 #602322
square
#406022 #225F60 #422260 #602322
split-complementary
#406022 #232260 #60225F
monochromatic
#0F1708 #223312 #406022 #5E8D32 #7CBA42

Accessibility & contrast

On white

7.21
#406022 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#406022 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406022
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406022#FFFFFF#000000##FFFFFF
##4060221.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#64591B
Deuteranopia (green-blind)
#605627
Tritanopia (blue-blind)
#415C53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #406022;
/* rgb */ color: rgb(64, 96, 34);
/* oklch */ color: oklch(44.9% 0.097 132.2);
Tailwind
colors: {
  custom: {
    50: '#778d60',
    500: '#406022',
    950: '#000000',
  },
}
SCSS
$custom: #406022;
$custom-light: #778d60;
$custom-dark: #000000;
JSON
{
  "hex": "#406022",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 34
  },
  "hsl": {
    "h": 90.968,
    "s": 47.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.44948,
    "c": 0.0972,
    "h": 132.2
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#406022
secondary
#704A94
accent
#51D796
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C05
muted
#7B7D79

Preview Lab

Preview with #406022

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

Preview Lab → · Contrast checker → · Palette generator →

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