#406717#406717

#406717 is a mid, moderate yellow-green. Relative luminance 0.109; OKLCH L 46.8% C 0.116 H 132.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#406717
RGBrgb(64, 103, 23)
HSLhsl(89, 63%, 25%)
HSVhsv(89, 78%, 40%)
CMYKcmyk(37.9%, 0%, 77.7%, 59.6%)
CIE-LABlab(39.33, -27.73, 38.33)
CIE-LCHlch(39.33, 47.30, 125.88°)
OKLaboklab(46.77% -0.0782 0.0859)
OKLCHoklch(46.77% 0.116 132.3)
XYZxyz(7.1192, 10.8521, 2.5300)
Luminance0.1085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406717 #3E1767
analogous
#676617 #406717 #186717
triadic
#406717 #174067 #671740
tetradic
#406717 #176766 #3E1767 #671718
square
#406717 #176766 #3E1767 #671718
split-complementary
#406717 #171867 #661767
monochromatic
#101906 #21350C #406717 #5F9922 #7ECB2D

Accessibility & contrast

On white

6.62
#406717 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#406717 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406717
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406717#FFFFFF#000000##FFFFFF
##4067171.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F08
Deuteranopia (green-blind)
#665C1F
Tritanopia (blue-blind)
#416358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #406717;
/* rgb */ color: rgb(64, 103, 23);
/* oklch */ color: oklch(46.8% 0.116 132.3);
Tailwind
colors: {
  custom: {
    50: '#79925a',
    500: '#406717',
    950: '#000000',
  },
}
SCSS
$custom: #406717;
$custom-light: #79925a;
$custom-dark: #000000;
JSON
{
  "hex": "#406717",
  "rgb": {
    "r": 64,
    "g": 103,
    "b": 23
  },
  "hsl": {
    "h": 89.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46766,
    "c": 0.11613,
    "h": 132.3
  },
  "luminance": 0.10852
}

Semantic roles & 50–950 ramp

primary
#406717
secondary
#6C3D9D
accent
#41E792
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406717

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

Preview Lab → · Contrast checker → · Palette generator →

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