#405F2D#405F2D

#405F2D is a dark, moderate yellow-green. Relative luminance 0.095; OKLCH L 44.8% C 0.084 H 134.7°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#405F2D
RGBrgb(64, 95, 45)
HSLhsl(97, 36%, 27%)
HSVhsv(97, 53%, 37%)
CMYKcmyk(32.6%, 0%, 52.6%, 62.7%)
CIE-LABlab(36.86, -21.51, 24.90)
CIE-LCHlch(36.86, 32.90, 130.83°)
OKLaboklab(44.83% -0.0593 0.0598)
OKLCHoklch(44.83% 0.084 134.7)
XYZxyz(6.6801, 9.4636, 3.9568)
Luminance0.0946 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F2D #4C2D5F
analogous
#595F2D #405F2D #2D5F33
triadic
#405F2D #2D405F #5F2D40
tetradic
#405F2D #2D595F #4C2D5F #5F332D
square
#405F2D #2D595F #4C2D5F #5F332D
split-complementary
#405F2D #332D5F #5F2D59
monochromatic
#0E150A #243519 #405F2D #5C8941 #79AF57

Accessibility & contrast

On white

7.26
#405F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#405F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F2D
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F2D#FFFFFF#000000##FFFFFF
##405F2D1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625829
Deuteranopia (green-blind)
#5E5630
Tritanopia (blue-blind)
#405C53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #405f2d;
/* rgb */ color: rgb(64, 95, 45);
/* oklch */ color: oklch(44.8% 0.084 134.7);
Tailwind
colors: {
  custom: {
    50: '#768c67',
    500: '#405f2d',
    950: '#000000',
  },
}
SCSS
$custom: #405f2d;
$custom-light: #768c67;
$custom-dark: #000000;
JSON
{
  "hex": "#405f2d",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 45
  },
  "hsl": {
    "h": 97.2,
    "s": 35.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.08426,
    "h": 134.7
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#405F2D
secondary
#7B5791
accent
#5CCCA1
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090C06
muted
#7B7D7A

Preview Lab

Preview with #405F2D

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

Preview Lab → · Contrast checker → · Palette generator →

#405F2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva