#406238#406238

#406238 is a mid, moderate green. Relative luminance 0.101; OKLCH L 45.8% C 0.077 H 139.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#406238
RGBrgb(64, 98, 56)
HSLhsl(109, 27%, 30%)
HSVhsv(109, 43%, 38%)
CMYKcmyk(34.7%, 0%, 42.9%, 61.6%)
CIE-LABlab(38.04, -21.41, 20.09)
CIE-LCHlch(38.04, 29.36, 136.83°)
OKLaboklab(45.84% -0.0585 0.0495)
OKLCHoklch(45.84% 0.077 139.7)
XYZxyz(7.1956, 10.1106, 5.3130)
Luminance0.1011 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406238 #5A3862
analogous
#556238 #406238 #386245
triadic
#406238 #384062 #623840
tetradic
#406238 #385562 #5A3862 #624538
square
#406238 #385562 #5A3862 #624538
split-complementary
#406238 #453862 #623855
monochromatic
#0D140B #273B22 #406238 #59894E #76AA6A

Accessibility & contrast

On white

6.95
#406238 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#406238 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406238
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406238#FFFFFF#000000##FFFFFF
##4062381.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645C35
Deuteranopia (green-blind)
#5F583A
Tritanopia (blue-blind)
#3E5F58
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #406238;
/* rgb */ color: rgb(64, 98, 56);
/* oklch */ color: oklch(45.8% 0.077 139.7);
Tailwind
colors: {
  custom: {
    50: '#768f6f',
    500: '#406238',
    950: '#000000',
  },
}
SCSS
$custom: #406238;
$custom-light: #768f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#406238",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 56
  },
  "hsl": {
    "h": 108.571,
    "s": 27.273,
    "l": 30.196
  },
  "oklch": {
    "l": 0.45843,
    "c": 0.07665,
    "h": 139.7
  },
  "luminance": 0.10111
}

Semantic roles & 50–950 ramp

primary
#406238
secondary
#896392
accent
#64C4B1
background
#F7F8F6
surface
#EDF0EC
border
#C8CBC7
text
#080C07
muted
#7B7D7A

Preview Lab

Preview with #406238

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

Preview Lab → · Contrast checker → · Palette generator →

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