#405317#405317

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

Color values

HEX#405317
RGBrgb(64, 83, 23)
HSLhsl(79, 57%, 21%)
HSVhsv(79, 72%, 33%)
CMYKcmyk(22.9%, 0%, 72.3%, 67.5%)
CIE-LABlab(32.56, -17.56, 31.46)
CIE-LCHlch(32.56, 36.03, 119.18°)
OKLaboklab(41.27% -0.0504 0.0715)
OKLCHoklch(41.27% 0.087 125.2)
XYZxyz(5.3623, 7.3383, 1.9444)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405317 #2A1753
analogous
#534817 #405317 #225317
triadic
#405317 #174053 #531740
tetradic
#405317 #175348 #2A1753 #531722
square
#405317 #175348 #2A1753 #531722
split-complementary
#405317 #172253 #481753
monochromatic
#121807 #1B230A #405317 #658324 #8AB332

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405317#FFFFFF#000000##FFFFFF
##4053171.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)
#584D0F
Deuteranopia (green-blind)
#554C1C
Tritanopia (blue-blind)
#434F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #405317;
/* rgb */ color: rgb(64, 83, 23);
/* oklch */ color: oklch(41.3% 0.087 125.2);
Tailwind
colors: {
  custom: {
    50: '#778358',
    500: '#405317',
    950: '#000000',
  },
}
SCSS
$custom: #405317;
$custom-light: #778358;
$custom-dark: #000000;
JSON
{
  "hex": "#405317",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 79,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41267,
    "c": 0.08746,
    "h": 125.2
  },
  "luminance": 0.07338
}

Semantic roles & 50–950 ramp

primary
#405317
secondary
#553C8A
accent
#48E078
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405317

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

Preview Lab → · Contrast checker → · Palette generator →

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