#406317#406317

#406317 is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 45.7% C 0.111 H 131.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#406317
RGBrgb(64, 99, 23)
HSLhsl(88, 62%, 24%)
HSVhsv(88, 77%, 39%)
CMYKcmyk(35.4%, 0%, 76.8%, 61.2%)
CIE-LABlab(37.98, -25.80, 36.98)
CIE-LCHlch(37.98, 45.09, 124.90°)
OKLaboklab(45.66% -0.073 0.0831)
OKLCHoklch(45.66% 0.111 131.3)
XYZxyz(6.7308, 10.0753, 2.4005)
Luminance0.1008 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406317 #3A1763
analogous
#636017 #406317 #1A6317
triadic
#406317 #174063 #631740
tetradic
#406317 #176360 #3A1763 #63171A
square
#406317 #176360 #3A1763 #63171A
split-complementary
#406317 #171A63 #601763
monochromatic
#101906 #20310B #406317 #609523 #80C62E

Accessibility & contrast

On white

6.96
#406317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#406317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406317
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406317#FFFFFF#000000##FFFFFF
##4063171.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B09
Deuteranopia (green-blind)
#63581E
Tritanopia (blue-blind)
#415F54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #406317;
/* rgb */ color: rgb(64, 99, 23);
/* oklch */ color: oklch(45.7% 0.111 131.3);
Tailwind
colors: {
  custom: {
    50: '#788f5a',
    500: '#406317',
    950: '#000000',
  },
}
SCSS
$custom: #406317;
$custom-light: #788f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#406317",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 23
  },
  "hsl": {
    "h": 87.632,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45662,
    "c": 0.11055,
    "h": 131.3
  },
  "luminance": 0.10076
}

Semantic roles & 50–950 ramp

primary
#406317
secondary
#673C9A
accent
#42E58D
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406317

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

Preview Lab → · Contrast checker → · Palette generator →

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