#406818#406818

#406818 is a mid, moderate yellow-green. Relative luminance 0.111; OKLCH L 47.0% C 0.117 H 132.7°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#406818
RGBrgb(64, 104, 24)
HSLhsl(90, 63%, 25%)
HSVhsv(90, 77%, 41%)
CMYKcmyk(38.5%, 0%, 76.9%, 59.2%)
CIE-LABlab(39.68, -28.13, 38.27)
CIE-LCHlch(39.68, 47.50, 126.32°)
OKLaboklab(47.05% -0.0792 0.0859)
OKLCHoklch(47.05% 0.117 132.7)
XYZxyz(7.2294, 11.0563, 2.6171)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406818 #401868
analogous
#686818 #406818 #186818
triadic
#406818 #184068 #681840
tetradic
#406818 #186868 #401868 #681818
square
#406818 #186868 #401868 #681818
split-complementary
#406818 #181868 #681868
monochromatic
#0F1906 #21360D #406818 #5F9A23 #7DCB2F

Accessibility & contrast

On white

6.54
#406818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406818
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406818#FFFFFF#000000##FFFFFF
##4068181.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F09
Deuteranopia (green-blind)
#675C20
Tritanopia (blue-blind)
#416458
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #406818;
/* rgb */ color: rgb(64, 104, 24);
/* oklch */ color: oklch(47.0% 0.117 132.7);
Tailwind
colors: {
  custom: {
    50: '#79935b',
    500: '#406818',
    950: '#000000',
  },
}
SCSS
$custom: #406818;
$custom-light: #79935b;
$custom-dark: #000000;
JSON
{
  "hex": "#406818",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 90,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.4705,
    "c": 0.11686,
    "h": 132.7
  },
  "luminance": 0.11057
}

Semantic roles & 50–950 ramp

primary
#406818
secondary
#6E3E9E
accent
#42E694
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406818

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

Preview Lab → · Contrast checker → · Palette generator →

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