#406816#406816

#406816 is a mid, moderate yellow-green. Relative luminance 0.110; OKLCH L 47.0% C 0.118 H 132.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#406816
RGBrgb(64, 104, 22)
HSLhsl(89, 65%, 25%)
HSVhsv(89, 79%, 41%)
CMYKcmyk(38.5%, 0%, 78.8%, 59.2%)
CIE-LABlab(39.66, -28.27, 39.04)
CIE-LCHlch(39.66, 48.20, 125.91°)
OKLaboklab(47.04% -0.0797 0.0872)
OKLCHoklch(47.04% 0.118 132.4)
XYZxyz(7.2094, 11.0482, 2.5116)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406816 #3E1668
analogous
#686716 #406816 #176816
triadic
#406816 #164068 #681640
tetradic
#406816 #166867 #3E1668 #681617
square
#406816 #166867 #3E1668 #681617
split-complementary
#406816 #161768 #671668
monochromatic
#101905 #21350B #406816 #5F9B21 #7ECD2B

Accessibility & contrast

On white

6.54
#406816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#406816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406816
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406816#FFFFFF#000000##FFFFFF
##4068161.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F05
Deuteranopia (green-blind)
#675C1E
Tritanopia (blue-blind)
#416358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #406816;
/* rgb */ color: rgb(64, 104, 22);
/* oklch */ color: oklch(47.0% 0.118 132.4);
Tailwind
colors: {
  custom: {
    50: '#79935a',
    500: '#406816',
    950: '#000000',
  },
}
SCSS
$custom: #406816;
$custom-light: #79935a;
$custom-dark: #000000;
JSON
{
  "hex": "#406816",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 89.268,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.47035,
    "c": 0.11815,
    "h": 132.4
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#406816
secondary
#6C3B9F
accent
#40E892
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406816

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

Preview Lab → · Contrast checker → · Palette generator →

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