#406812#406812

#406812 is a mid, vivid yellow-green. Relative luminance 0.110; OKLCH L 47.0% C 0.120 H 132.1°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#406812
RGBrgb(64, 104, 18)
HSLhsl(88, 70%, 24%)
HSVhsv(88, 83%, 41%)
CMYKcmyk(38.5%, 0%, 82.7%, 59.2%)
CIE-LABlab(39.64, -28.51, 40.45)
CIE-LCHlch(39.64, 49.49, 125.18°)
OKLaboklab(47.01% -0.0807 0.0895)
OKLCHoklch(47.01% 0.12 132.1)
XYZxyz(7.1738, 11.0340, 2.3239)
Luminance0.1103 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406812 #3A1268
analogous
#686512 #406812 #156812
triadic
#406812 #124068 #681240
tetradic
#406812 #126865 #3A1268 #681215
square
#406812 #126865 #3A1268 #681215
split-complementary
#406812 #121568 #651268
monochromatic
#101A05 #203409 #406812 #609C1B #80D024

Accessibility & contrast

On white

6.55
#406812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406812
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406812#FFFFFF#000000##FFFFFF
##4068121.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #406812;
/* rgb */ color: rgb(64, 104, 18);
/* oklch */ color: oklch(47.0% 0.120 132.1);
Tailwind
colors: {
  custom: {
    50: '#799358',
    500: '#406812',
    950: '#000000',
  },
}
SCSS
$custom: #406812;
$custom-light: #799358;
$custom-dark: #000000;
JSON
{
  "hex": "#406812",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 87.907,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.47007,
    "c": 0.12049,
    "h": 132.1
  },
  "luminance": 0.11034
}

Semantic roles & 50–950 ramp

primary
#406812
secondary
#6736A0
accent
#3BED8E
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406812

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

Preview Lab → · Contrast checker → · Palette generator →

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