#406312#406312

#406312 is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 45.6% C 0.114 H 130.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#406312
RGBrgb(64, 99, 18)
HSLhsl(86, 69%, 23%)
HSVhsv(86, 82%, 39%)
CMYKcmyk(35.4%, 0%, 81.8%, 61.2%)
CIE-LABlab(37.94, -26.13, 38.86)
CIE-LCHlch(37.94, 46.82, 123.92°)
OKLaboklab(45.63% -0.0743 0.0861)
OKLCHoklch(45.63% 0.114 130.8)
XYZxyz(6.6853, 10.0571, 2.1611)
Luminance0.1006 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406312 #351263
analogous
#635D12 #406312 #176312
triadic
#406312 #124063 #631240
tetradic
#406312 #12635D #351263 #631217
square
#406312 #12635D #351263 #631217
split-complementary
#406312 #121763 #5D1263
monochromatic
#111A05 #1F2F09 #406312 #61971B #83CB25

Accessibility & contrast

On white

6.97
#406312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#406312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406312
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406312#FFFFFF#000000##FFFFFF
##4063121.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#63581A
Tritanopia (blue-blind)
#425E54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #406312;
/* rgb */ color: rgb(64, 99, 18);
/* oklch */ color: oklch(45.6% 0.114 130.8);
Tailwind
colors: {
  custom: {
    50: '#788f57',
    500: '#406312',
    950: '#000000',
  },
}
SCSS
$custom: #406312;
$custom-light: #788f57;
$custom-dark: #000000;
JSON
{
  "hex": "#406312",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 85.926,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.45625,
    "c": 0.11372,
    "h": 130.8
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

primary
#406312
secondary
#62369B
accent
#3CEC88
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #406312

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

Preview Lab → · Contrast checker → · Palette generator →

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