#406C17#406C17

#406C17 is a mid, vivid yellow-green. Relative luminance 0.119; OKLCH L 48.1% C 0.123 H 133.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#406C17
RGBrgb(64, 108, 23)
HSLhsl(91, 65%, 26%)
HSVhsv(91, 79%, 42%)
CMYKcmyk(40.7%, 0%, 78.7%, 57.6%)
CIE-LABlab(41.02, -30.07, 39.98)
CIE-LCHlch(41.02, 50.03, 126.95°)
OKLaboklab(48.15% -0.0845 0.0893)
OKLCHoklch(48.15% 0.123 133.4)
XYZxyz(7.6314, 11.8766, 2.7008)
Luminance0.1188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406C17 #43176C
analogous
#6A6C17 #406C17 #176C19
triadic
#406C17 #17406C #6C1740
tetradic
#406C17 #176A6C #43176C #6C1917
square
#406C17 #176A6C #43176C #6C1917
split-complementary
#406C17 #19176C #6C176A
monochromatic
#0F1905 #223A0C #406C17 #5E9E22 #7CD12C

Accessibility & contrast

On white

6.22
#406C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#406C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406C17
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406C17#FFFFFF#000000##FFFFFF
##406C171.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716305
Deuteranopia (green-blind)
#6B5F20
Tritanopia (blue-blind)
#40675C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #406c17;
/* rgb */ color: rgb(64, 108, 23);
/* oklch */ color: oklch(48.1% 0.123 133.4);
Tailwind
colors: {
  custom: {
    50: '#79965b',
    500: '#406c17',
    950: '#000000',
  },
}
SCSS
$custom: #406c17;
$custom-light: #79965b;
$custom-dark: #000000;
JSON
{
  "hex": "#406c17",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 91.059,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48147,
    "c": 0.12299,
    "h": 133.4
  },
  "luminance": 0.11877
}

Semantic roles & 50–950 ramp

primary
#406C17
secondary
#713DA2
accent
#40E897
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406C17

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

Preview Lab → · Contrast checker → · Palette generator →

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