#40520D#40520D

#40520D is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.9% C 0.093 H 123.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#40520D
RGBrgb(64, 82, 13)
HSLhsl(76, 73%, 19%)
HSVhsv(76, 84%, 32%)
CMYKcmyk(22%, 0%, 84.1%, 67.8%)
CIE-LABlab(32.15, -17.69, 35.22)
CIE-LCHlch(32.15, 39.41, 116.68°)
OKLaboklab(40.91% -0.0518 0.0776)
OKLCHoklch(40.91% 0.093 123.7)
XYZxyz(5.2044, 7.1536, 1.4873)
Luminance0.0715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40520D #1F0D52
analogous
#52410D #40520D #1D520D
triadic
#40520D #0D4052 #520D40
tetradic
#40520D #0D5241 #1F0D52 #520D1D
square
#40520D #0D5241 #1F0D52 #520D1D
split-complementary
#40520D #0D1D52 #410D52
monochromatic
#151A04 #171D05 #40520D #698715 #92BC1E

Accessibility & contrast

On white

8.64
#40520D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#40520D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40520D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40520D#FFFFFF#000000##FFFFFF
##40520D1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#554B14
Tritanopia (blue-blind)
#444D45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40520d;
/* rgb */ color: rgb(64, 82, 13);
/* oklch */ color: oklch(40.9% 0.093 123.7);
Tailwind
colors: {
  custom: {
    50: '#778252',
    500: '#40520d',
    950: '#000000',
  },
}
SCSS
$custom: #40520d;
$custom-light: #778252;
$custom-dark: #000000;
JSON
{
  "hex": "#40520d",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 13
  },
  "hsl": {
    "h": 75.652,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.40911,
    "c": 0.09325,
    "h": 123.7
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#40520D
secondary
#472E8D
accent
#38EF68
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A02
muted
#7B7C78

Preview Lab

Preview with #40520D

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

Preview Lab → · Contrast checker → · Palette generator →

#40520D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva