#406915#406915

#406915 is a mid, vivid yellow-green. Relative luminance 0.112; OKLCH L 47.3% C 0.120 H 132.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#406915
RGBrgb(64, 105, 21)
HSLhsl(89, 67%, 25%)
HSVhsv(89, 80%, 41%)
CMYKcmyk(39%, 0%, 80%, 58.8%)
CIE-LABlab(39.99, -28.80, 39.73)
CIE-LCHlch(39.99, 49.07, 125.94°)
OKLaboklab(47.3% -0.0813 0.0885)
OKLCHoklch(47.3% 0.12 132.6)
XYZxyz(7.3012, 11.2470, 2.4955)
Luminance0.1125 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406915 #3E1569
analogous
#696815 #406915 #166915
triadic
#406915 #154069 #691540
tetradic
#406915 #156968 #3E1569 #691516
square
#406915 #156968 #3E1569 #691516
split-complementary
#406915 #151669 #681569
monochromatic
#101A05 #21360B #406915 #5F9C1F #7ECF29

Accessibility & contrast

On white

6.46
#406915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#406915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406915
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406915#FFFFFF#000000##FFFFFF
##4069151.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6003
Deuteranopia (green-blind)
#685D1E
Tritanopia (blue-blind)
#416459
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #406915;
/* rgb */ color: rgb(64, 105, 21);
/* oklch */ color: oklch(47.3% 0.120 132.6);
Tailwind
colors: {
  custom: {
    50: '#79945a',
    500: '#406915',
    950: '#000000',
  },
}
SCSS
$custom: #406915;
$custom-light: #79945a;
$custom-dark: #000000;
JSON
{
  "hex": "#406915",
  "rgb": {
    "r": 64,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 89.286,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.47304,
    "c": 0.12013,
    "h": 132.6
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

primary
#406915
secondary
#6C3AA0
accent
#3EEA92
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406915

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

Preview Lab → · Contrast checker → · Palette generator →

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