#406E28#406E28

#406E28 is a mid, moderate yellow-green. Relative luminance 0.124; OKLCH L 48.9% C 0.113 H 136.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#406E28
RGBrgb(64, 110, 40)
HSLhsl(99, 47%, 29%)
HSVhsv(99, 64%, 43%)
CMYKcmyk(41.8%, 0%, 63.6%, 56.9%)
CIE-LABlab(41.84, -29.51, 33.38)
CIE-LCHlch(41.84, 44.55, 131.48°)
OKLaboklab(48.86% -0.0816 0.0778)
OKLCHoklch(48.86% 0.113 136.4)
XYZxyz(8.0731, 12.3946, 3.9741)
Luminance0.1240 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E28 #56286E
analogous
#636E28 #406E28 #286E33
triadic
#406E28 #28406E #6E2840
tetradic
#406E28 #28636E #56286E #6E3328
square
#406E28 #28636E #56286E #6E3328
split-complementary
#406E28 #33286E #6E2863
monochromatic
#0D1608 #264118 #406E28 #5A9B38 #77C051

Accessibility & contrast

On white

6.04
#406E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#406E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406E28
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406E28#FFFFFF#000000##FFFFFF
##406E281.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726520
Deuteranopia (green-blind)
#6B612D
Tritanopia (blue-blind)
#3E6A5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406e28;
/* rgb */ color: rgb(64, 110, 40);
/* oklch */ color: oklch(48.9% 0.113 136.4);
Tailwind
colors: {
  custom: {
    50: '#789865',
    500: '#406e28',
    950: '#000000',
  },
}
SCSS
$custom: #406e28;
$custom-light: #789865;
$custom-dark: #000000;
JSON
{
  "hex": "#406e28",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 40
  },
  "hsl": {
    "h": 99.429,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.48861,
    "c": 0.11279,
    "h": 136.4
  },
  "luminance": 0.12395
}

Semantic roles & 50–950 ramp

primary
#406E28
secondary
#8551A0
accent
#51D6A9
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090D06
muted
#7B7E7A

Preview Lab

Preview with #406E28

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

Preview Lab → · Contrast checker → · Palette generator →

#406E28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva