#406817#406817

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

Color values

HEX#406817
RGBrgb(64, 104, 23)
HSLhsl(90, 64%, 25%)
HSVhsv(90, 78%, 41%)
CMYKcmyk(38.5%, 0%, 77.9%, 59.2%)
CIE-LABlab(39.67, -28.20, 38.66)
CIE-LCHlch(39.67, 47.85, 126.11°)
OKLaboklab(47.04% -0.0795 0.0866)
OKLCHoklch(47.04% 0.118 132.6)
XYZxyz(7.2192, 11.0522, 2.5634)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406817 #3F1768
analogous
#686817 #406817 #176817
triadic
#406817 #174068 #681740
tetradic
#406817 #176868 #3F1768 #681717
square
#406817 #176868 #3F1768 #681717
split-complementary
#406817 #171768 #681768
monochromatic
#0F1906 #21360C #406817 #5F9A22 #7ECC2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406817#FFFFFF#000000##FFFFFF
##4068171.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)
#6D5F07
Deuteranopia (green-blind)
#675C1F
Tritanopia (blue-blind)
#416358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #406817;
/* rgb */ color: rgb(64, 104, 23);
/* oklch */ color: oklch(47.0% 0.118 132.6);
Tailwind
colors: {
  custom: {
    50: '#79935a',
    500: '#406817',
    950: '#000000',
  },
}
SCSS
$custom: #406817;
$custom-light: #79935a;
$custom-dark: #000000;
JSON
{
  "hex": "#406817",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 89.63,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47042,
    "c": 0.11751,
    "h": 132.6
  },
  "luminance": 0.11052
}

Semantic roles & 50–950 ramp

primary
#406817
secondary
#6D3D9E
accent
#41E793
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406817

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

Preview Lab → · Contrast checker → · Palette generator →

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