#405118#405118

#405118 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.7% C 0.084 H 124.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#405118
RGBrgb(64, 81, 24)
HSLhsl(78, 54%, 21%)
HSVhsv(78, 70%, 32%)
CMYKcmyk(21%, 0%, 70.4%, 68.2%)
CIE-LABlab(31.90, -16.39, 30.28)
CIE-LCHlch(31.90, 34.43, 118.42°)
OKLaboklab(40.73% -0.0471 0.0691)
OKLCHoklch(40.73% 0.084 124.3)
XYZxyz(5.2217, 7.0408, 1.9479)
Luminance0.0704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405118 #291851
analogous
#514518 #405118 #235118
triadic
#405118 #184051 #511840
tetradic
#405118 #185145 #291851 #511823
square
#405118 #185145 #291851 #511823
split-complementary
#405118 #182351 #451851
monochromatic
#131807 #1B220A #405118 #658026 #8BAF34

Accessibility & contrast

On white

8.72
#405118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#405118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405118
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405118#FFFFFF#000000##FFFFFF
##4051181.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C11
Deuteranopia (green-blind)
#534B1C
Tritanopia (blue-blind)
#434D45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #405118;
/* rgb */ color: rgb(64, 81, 24);
/* oklch */ color: oklch(40.7% 0.084 124.3);
Tailwind
colors: {
  custom: {
    50: '#778258',
    500: '#405118',
    950: '#000000',
  },
}
SCSS
$custom: #405118;
$custom-light: #778258;
$custom-dark: #000000;
JSON
{
  "hex": "#405118",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 77.895,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40732,
    "c": 0.08365,
    "h": 124.3
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#405118
secondary
#533D88
accent
#4ADE76
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405118

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

Preview Lab → · Contrast checker → · Palette generator →

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