#406512#406512

#406512 is a mid, moderate yellow-green. Relative luminance 0.104; OKLCH L 46.2% C 0.116 H 131.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#406512
RGBrgb(64, 101, 18)
HSLhsl(87, 70%, 23%)
HSVhsv(87, 82%, 40%)
CMYKcmyk(36.6%, 0%, 82.2%, 60.4%)
CIE-LABlab(38.62, -27.09, 39.50)
CIE-LCHlch(38.62, 47.89, 124.45°)
OKLaboklab(46.18% -0.0769 0.0875)
OKLCHoklch(46.18% 0.116 131.3)
XYZxyz(6.8772, 10.4408, 2.2251)
Luminance0.1044 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406512 #371265
analogous
#656012 #406512 #166512
triadic
#406512 #124065 #651240
tetradic
#406512 #126560 #371265 #651216
square
#406512 #126560 #371265 #651216
split-complementary
#406512 #121665 #601265
monochromatic
#101A05 #1F3109 #406512 #61991B #82CD25

Accessibility & contrast

On white

6.80
#406512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#406512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406512
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406512#FFFFFF#000000##FFFFFF
##4065121.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#655A1B
Tritanopia (blue-blind)
#416056
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #406512;
/* rgb */ color: rgb(64, 101, 18);
/* oklch */ color: oklch(46.2% 0.116 131.3);
Tailwind
colors: {
  custom: {
    50: '#799158',
    500: '#406512',
    950: '#000000',
  },
}
SCSS
$custom: #406512;
$custom-light: #799158;
$custom-dark: #000000;
JSON
{
  "hex": "#406512",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 86.747,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.46178,
    "c": 0.11645,
    "h": 131.3
  },
  "luminance": 0.10441
}

Semantic roles & 50–950 ramp

primary
#406512
secondary
#64369D
accent
#3BED8A
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #406512

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

Preview Lab → · Contrast checker → · Palette generator →

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