#406018#406018

#406018 is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.8% C 0.106 H 130.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#406018
RGBrgb(64, 96, 24)
HSLhsl(87, 60%, 24%)
HSVhsv(87, 75%, 38%)
CMYKcmyk(33.3%, 0%, 75%, 62.4%)
CIE-LABlab(36.97, -24.25, 35.55)
CIE-LCHlch(36.97, 43.03, 124.29°)
OKLaboklab(44.84% -0.0686 0.0802)
OKLCHoklch(44.84% 0.106 130.6)
XYZxyz(6.4620, 9.5215, 2.3613)
Luminance0.0952 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406018 #381860
analogous
#605C18 #406018 #1C6018
triadic
#406018 #184060 #601840
tetradic
#406018 #18605C #381860 #60181C
square
#406018 #18605C #381860 #60181C
split-complementary
#406018 #181C60 #5C1860
monochromatic
#101806 #1F2F0C #406018 #619124 #81C230

Accessibility & contrast

On white

7.23
#406018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#406018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406018
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406018#FFFFFF#000000##FFFFFF
##4060181.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590C
Deuteranopia (green-blind)
#60561E
Tritanopia (blue-blind)
#425C52
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #406018;
/* rgb */ color: rgb(64, 96, 24);
/* oklch */ color: oklch(44.8% 0.106 130.6);
Tailwind
colors: {
  custom: {
    50: '#788d5a',
    500: '#406018',
    950: '#000000',
  },
}
SCSS
$custom: #406018;
$custom-light: #788d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#406018",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 24
  },
  "hsl": {
    "h": 86.667,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44844,
    "c": 0.10558,
    "h": 130.6
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#406018
secondary
#653D96
accent
#45E38B
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406018

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

Preview Lab → · Contrast checker → · Palette generator →

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