#406216#406216

#406216 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.4% C 0.110 H 130.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#406216
RGBrgb(64, 98, 22)
HSLhsl(87, 63%, 24%)
HSVhsv(87, 78%, 38%)
CMYKcmyk(34.7%, 0%, 77.6%, 61.6%)
CIE-LABlab(37.63, -25.38, 37.04)
CIE-LCHlch(37.63, 44.90, 124.42°)
OKLaboklab(45.38% -0.0719 0.083)
OKLCHoklch(45.38% 0.11 130.9)
XYZxyz(6.6268, 9.8831, 2.3174)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406216 #381662
analogous
#625E16 #406216 #1A6216
triadic
#406216 #164062 #621640
tetradic
#406216 #16625E #381662 #62161A
square
#406216 #16625E #381662 #62161A
split-complementary
#406216 #161A62 #5E1662
monochromatic
#101906 #1F300B #406216 #619421 #81C62C

Accessibility & contrast

On white

7.06
#406216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#406216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406216
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406216#FFFFFF#000000##FFFFFF
##4062161.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A08
Deuteranopia (green-blind)
#62581D
Tritanopia (blue-blind)
#415E53
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #406216;
/* rgb */ color: rgb(64, 98, 22);
/* oklch */ color: oklch(45.4% 0.110 130.9);
Tailwind
colors: {
  custom: {
    50: '#788f59',
    500: '#406216',
    950: '#000000',
  },
}
SCSS
$custom: #406216;
$custom-light: #788f59;
$custom-dark: #000000;
JSON
{
  "hex": "#406216",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 22
  },
  "hsl": {
    "h": 86.842,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.10983,
    "h": 130.9
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#406216
secondary
#653B99
accent
#41E68B
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406216

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

Preview Lab → · Contrast checker → · Palette generator →

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