#406918#406918

#406918 is a mid, moderate yellow-green. Relative luminance 0.113; OKLCH L 47.3% C 0.118 H 132.9°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#406918
RGBrgb(64, 105, 24)
HSLhsl(90, 63%, 25%)
HSVhsv(90, 77%, 41%)
CMYKcmyk(39%, 0%, 77.1%, 58.8%)
CIE-LABlab(40.01, -28.60, 38.61)
CIE-LCHlch(40.01, 48.05, 126.53°)
OKLaboklab(47.33% -0.0805 0.0866)
OKLCHoklch(47.33% 0.118 132.9)
XYZxyz(7.3307, 11.2588, 2.6509)
Luminance0.1126 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406918 #411869
analogous
#696918 #406918 #186918
triadic
#406918 #184069 #691840
tetradic
#406918 #186969 #411869 #691818
square
#406918 #186969 #411869 #691818
split-complementary
#406918 #181869 #691869
monochromatic
#0F1906 #22370D #406918 #5E9B23 #7DCD2F

Accessibility & contrast

On white

6.46
#406918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#406918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406918
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406918#FFFFFF#000000##FFFFFF
##4069181.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6009
Deuteranopia (green-blind)
#685D20
Tritanopia (blue-blind)
#406559
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #406918;
/* rgb */ color: rgb(64, 105, 24);
/* oklch */ color: oklch(47.3% 0.118 132.9);
Tailwind
colors: {
  custom: {
    50: '#79945b',
    500: '#406918',
    950: '#000000',
  },
}
SCSS
$custom: #406918;
$custom-light: #79945b;
$custom-dark: #000000;
JSON
{
  "hex": "#406918",
  "rgb": {
    "r": 64,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 90.37,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47326,
    "c": 0.11824,
    "h": 132.9
  },
  "luminance": 0.11259
}

Semantic roles & 50–950 ramp

primary
#406918
secondary
#6F3E9F
accent
#42E695
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406918

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

Preview Lab → · Contrast checker → · Palette generator →

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