#405018#405018

#405018 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.5% C 0.082 H 123.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#405018
RGBrgb(64, 80, 24)
HSLhsl(77, 54%, 20%)
HSVhsv(77, 70%, 31%)
CMYKcmyk(20%, 0%, 70%, 68.6%)
CIE-LABlab(31.56, -15.83, 29.92)
CIE-LCHlch(31.56, 33.85, 117.89°)
OKLaboklab(40.46% -0.0455 0.0684)
OKLCHoklch(40.46% 0.082 123.7)
XYZxyz(5.1479, 6.8932, 1.9233)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405018 #281850
analogous
#504418 #405018 #245018
triadic
#405018 #184050 #501840
tetradic
#405018 #185044 #281850 #501824
square
#405018 #185044 #281850 #501824
split-complementary
#405018 #182450 #441850
monochromatic
#131807 #1A210A #405018 #667F26 #8BAE34

Accessibility & contrast

On white

8.83
#405018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#405018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405018
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405018#FFFFFF#000000##FFFFFF
##4050181.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#534A1C
Tritanopia (blue-blind)
#434C44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #405018;
/* rgb */ color: rgb(64, 80, 24);
/* oklch */ color: oklch(40.5% 0.082 123.7);
Tailwind
colors: {
  custom: {
    50: '#778158',
    500: '#405018',
    950: '#000000',
  },
}
SCSS
$custom: #405018;
$custom-light: #778158;
$custom-dark: #000000;
JSON
{
  "hex": "#405018",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 77.143,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.4046,
    "c": 0.08216,
    "h": 123.7
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

primary
#405018
secondary
#523D87
accent
#4BDD74
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405018

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

Preview Lab → · Contrast checker → · Palette generator →

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