#406038#406038

#406038 is a mid, moderate green. Relative luminance 0.097; OKLCH L 45.3% C 0.073 H 139.5°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#406038
RGBrgb(64, 96, 56)
HSLhsl(108, 26%, 30%)
HSVhsv(108, 42%, 38%)
CMYKcmyk(33.3%, 0%, 41.7%, 62.4%)
CIE-LABlab(37.37, -20.37, 19.22)
CIE-LCHlch(37.37, 28.01, 136.66°)
OKLaboklab(45.3% -0.0556 0.0475)
OKLCHoklch(45.3% 0.073 139.5)
XYZxyz(7.0108, 9.7410, 5.2514)
Luminance0.0974 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406038 #583860
analogous
#546038 #406038 #386044
triadic
#406038 #384060 #603840
tetradic
#406038 #385460 #583860 #604438
square
#406038 #385460 #583860 #604438
split-complementary
#406038 #443860 #603854
monochromatic
#0D130B #263921 #406038 #5A874F #77A86A

Accessibility & contrast

On white

7.12
#406038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#406038 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406038
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406038#FFFFFF#000000##FFFFFF
##4060381.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625A35
Deuteranopia (green-blind)
#5D573A
Tritanopia (blue-blind)
#3E5E56
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #406038;
/* rgb */ color: rgb(64, 96, 56);
/* oklch */ color: oklch(45.3% 0.073 139.5);
Tailwind
colors: {
  custom: {
    50: '#768d6f',
    500: '#406038',
    950: '#000000',
  },
}
SCSS
$custom: #406038;
$custom-light: #768d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#406038",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 56
  },
  "hsl": {
    "h": 108,
    "s": 26.316,
    "l": 29.804
  },
  "oklch": {
    "l": 0.45303,
    "c": 0.07316,
    "h": 139.5
  },
  "luminance": 0.09741
}

Semantic roles & 50–950 ramp

primary
#406038
secondary
#876390
accent
#65C3B0
background
#F7F8F6
surface
#EDF0EC
border
#C8CBC7
text
#080C07
muted
#7B7D7A

Preview Lab

Preview with #406038

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

Preview Lab → · Contrast checker → · Palette generator →

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