#406118#406118

#406118 is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.1% C 0.107 H 130.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#406118
RGBrgb(64, 97, 24)
HSLhsl(87, 60%, 24%)
HSVhsv(87, 75%, 38%)
CMYKcmyk(34%, 0%, 75.3%, 62%)
CIE-LABlab(37.31, -24.74, 35.90)
CIE-LCHlch(37.31, 43.60, 124.58°)
OKLaboklab(45.12% -0.07 0.0809)
OKLCHoklch(45.12% 0.107 130.9)
XYZxyz(6.5539, 9.7051, 2.3919)
Luminance0.0970 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406118 #391861
analogous
#615D18 #406118 #1B6118
triadic
#406118 #184061 #611840
tetradic
#406118 #18615D #391861 #61181B
square
#406118 #18615D #391861 #61181B
split-complementary
#406118 #181B61 #5D1861
monochromatic
#101906 #20300C #406118 #609224 #81C330

Accessibility & contrast

On white

7.14
#406118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#406118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406118
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406118#FFFFFF#000000##FFFFFF
##4061181.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66590C
Deuteranopia (green-blind)
#61571F
Tritanopia (blue-blind)
#415D53
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #406118;
/* rgb */ color: rgb(64, 97, 24);
/* oklch */ color: oklch(45.1% 0.107 130.9);
Tailwind
colors: {
  custom: {
    50: '#788e5a',
    500: '#406118',
    950: '#000000',
  },
}
SCSS
$custom: #406118;
$custom-light: #788e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#406118",
  "rgb": {
    "r": 64,
    "g": 97,
    "b": 24
  },
  "hsl": {
    "h": 87.123,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.45119,
    "c": 0.10701,
    "h": 130.9
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#406118
secondary
#663D97
accent
#44E38C
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406118

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

Preview Lab → · Contrast checker → · Palette generator →

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