#405318#405318

#405318 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.3% C 0.087 H 125.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#405318
RGBrgb(64, 83, 24)
HSLhsl(79, 55%, 21%)
HSVhsv(79, 71%, 33%)
CMYKcmyk(22.9%, 0%, 71.1%, 67.5%)
CIE-LABlab(32.57, -17.48, 30.99)
CIE-LCHlch(32.57, 35.58, 119.42°)
OKLaboklab(41.28% -0.0501 0.0707)
OKLCHoklch(41.28% 0.087 125.3)
XYZxyz(5.3725, 7.3424, 1.9982)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405318 #2B1853
analogous
#534818 #405318 #225318
triadic
#405318 #184053 #531840
tetradic
#405318 #185348 #2B1853 #531822
square
#405318 #185348 #2B1853 #531822
split-complementary
#405318 #182253 #481853
monochromatic
#121807 #1B240A #405318 #658226 #89B233

Accessibility & contrast

On white

8.51
#405318 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#405318 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405318
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405318#FFFFFF#000000##FFFFFF
##4053181.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D10
Deuteranopia (green-blind)
#554C1D
Tritanopia (blue-blind)
#434F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #405318;
/* rgb */ color: rgb(64, 83, 24);
/* oklch */ color: oklch(41.3% 0.087 125.3);
Tailwind
colors: {
  custom: {
    50: '#778358',
    500: '#405318',
    950: '#000000',
  },
}
SCSS
$custom: #405318;
$custom-light: #778358;
$custom-dark: #000000;
JSON
{
  "hex": "#405318",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 24
  },
  "hsl": {
    "h": 79.322,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41277,
    "c": 0.08661,
    "h": 125.3
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#405318
secondary
#563D8A
accent
#49DE79
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405318

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

Preview Lab → · Contrast checker → · Palette generator →

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