#406917#406917

#406917 is a mid, moderate yellow-green. Relative luminance 0.113; OKLCH L 47.3% C 0.119 H 132.8°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#406917
RGBrgb(64, 105, 23)
HSLhsl(90, 64%, 25%)
HSVhsv(90, 78%, 41%)
CMYKcmyk(39%, 0%, 78.1%, 58.8%)
CIE-LABlab(40.01, -28.67, 38.99)
CIE-LCHlch(40.01, 48.40, 126.33°)
OKLaboklab(47.32% -0.0808 0.0873)
OKLCHoklch(47.32% 0.119 132.8)
XYZxyz(7.3205, 11.2547, 2.5971)
Luminance0.1125 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406917 #401769
analogous
#696917 #406917 #176917
triadic
#406917 #174069 #691740
tetradic
#406917 #176969 #401769 #691717
square
#406917 #176969 #401769 #691717
split-complementary
#406917 #171769 #691769
monochromatic
#0F1905 #21370C #406917 #5F9B22 #7DCD2D

Accessibility & contrast

On white

6.46
#406917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#406917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406917
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406917#FFFFFF#000000##FFFFFF
##4069171.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6007
Deuteranopia (green-blind)
#685D1F
Tritanopia (blue-blind)
#406459
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #406917;
/* rgb */ color: rgb(64, 105, 23);
/* oklch */ color: oklch(47.3% 0.119 132.8);
Tailwind
colors: {
  custom: {
    50: '#79945b',
    500: '#406917',
    950: '#000000',
  },
}
SCSS
$custom: #406917;
$custom-light: #79945b;
$custom-dark: #000000;
JSON
{
  "hex": "#406917",
  "rgb": {
    "r": 64,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 90,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.47318,
    "c": 0.1189,
    "h": 132.8
  },
  "luminance": 0.11255
}

Semantic roles & 50–950 ramp

primary
#406917
secondary
#6E3D9F
accent
#41E794
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406917

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

Preview Lab → · Contrast checker → · Palette generator →

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