#406017#406017

#406017 is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.8% C 0.106 H 130.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#406017
RGBrgb(64, 96, 23)
HSLhsl(86, 61%, 23%)
HSVhsv(86, 76%, 38%)
CMYKcmyk(33.3%, 0%, 76%, 62.4%)
CIE-LABlab(36.96, -24.32, 35.97)
CIE-LCHlch(36.96, 43.42, 124.07°)
OKLaboklab(44.84% -0.0689 0.0809)
OKLCHoklch(44.84% 0.106 130.4)
XYZxyz(6.4518, 9.5174, 2.3076)
Luminance0.0952 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406017 #371760
analogous
#605B17 #406017 #1B6017
triadic
#406017 #174060 #601740
tetradic
#406017 #17605B #371760 #60171B
square
#406017 #17605B #371760 #60171B
split-complementary
#406017 #171B60 #5B1760
monochromatic
#101906 #1F2F0B #406017 #619123 #82C32F

Accessibility & contrast

On white

7.23
#406017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#406017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406017
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406017#FFFFFF#000000##FFFFFF
##4060171.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65580A
Deuteranopia (green-blind)
#60561E
Tritanopia (blue-blind)
#425C52
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #406017;
/* rgb */ color: rgb(64, 96, 23);
/* oklch */ color: oklch(44.8% 0.106 130.4);
Tailwind
colors: {
  custom: {
    50: '#788d59',
    500: '#406017',
    950: '#000000',
  },
}
SCSS
$custom: #406017;
$custom-light: #788d59;
$custom-dark: #000000;
JSON
{
  "hex": "#406017",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 86.301,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.44835,
    "c": 0.10631,
    "h": 130.4
  },
  "luminance": 0.09518
}

Semantic roles & 50–950 ramp

primary
#406017
secondary
#643C97
accent
#43E48A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406017

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

Preview Lab → · Contrast checker → · Palette generator →

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