#406815#406815

#406815 is a mid, moderate yellow-green. Relative luminance 0.110; OKLCH L 47.0% C 0.119 H 132.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#406815
RGBrgb(64, 104, 21)
HSLhsl(89, 66%, 25%)
HSVhsv(89, 80%, 41%)
CMYKcmyk(38.5%, 0%, 79.8%, 59.2%)
CIE-LABlab(39.66, -28.33, 39.40)
CIE-LCHlch(39.66, 48.53, 125.72°)
OKLaboklab(47.03% -0.08 0.0878)
OKLCHoklch(47.03% 0.119 132.3)
XYZxyz(7.1999, 11.0445, 2.4618)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406815 #3D1568
analogous
#686715 #406815 #166815
triadic
#406815 #154068 #681540
tetradic
#406815 #156867 #3D1568 #681516
square
#406815 #156867 #3D1568 #681516
split-complementary
#406815 #151668 #671568
monochromatic
#101905 #21350B #406815 #5F9B1F #7FCE2A

Accessibility & contrast

On white

6.54
#406815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#406815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406815
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406815#FFFFFF#000000##FFFFFF
##4068151.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F03
Deuteranopia (green-blind)
#675C1D
Tritanopia (blue-blind)
#416358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #406815;
/* rgb */ color: rgb(64, 104, 21);
/* oklch */ color: oklch(47.0% 0.119 132.3);
Tailwind
colors: {
  custom: {
    50: '#799359',
    500: '#406815',
    950: '#000000',
  },
}
SCSS
$custom: #406815;
$custom-light: #799359;
$custom-dark: #000000;
JSON
{
  "hex": "#406815",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 88.916,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.47027,
    "c": 0.11877,
    "h": 132.3
  },
  "luminance": 0.11045
}

Semantic roles & 50–950 ramp

primary
#406815
secondary
#6B3A9F
accent
#3EE991
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406815

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

Preview Lab → · Contrast checker → · Palette generator →

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