#40520E#40520E

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

Color values

HEX#40520E
RGBrgb(64, 82, 14)
HSLhsl(76, 71%, 19%)
HSVhsv(76, 83%, 32%)
CMYKcmyk(22%, 0%, 82.9%, 67.8%)
CIE-LABlab(32.16, -17.64, 34.86)
CIE-LCHlch(32.16, 39.06, 116.84°)
OKLaboklab(40.92% -0.0515 0.077)
OKLCHoklch(40.92% 0.093 123.8)
XYZxyz(5.2110, 7.1562, 1.5221)
Luminance0.0716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40520E #200E52
analogous
#52420E #40520E #1E520E
triadic
#40520E #0E4052 #520E40
tetradic
#40520E #0E5242 #200E52 #520E1E
square
#40520E #0E5242 #200E52 #520E1E
split-complementary
#40520E #0E1E52 #420E52
monochromatic
#141A04 #171E05 #40520E #698617 #92BB20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40520E#FFFFFF#000000##FFFFFF
##40520E1.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)
#574C01
Deuteranopia (green-blind)
#554B15
Tritanopia (blue-blind)
#444D45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40520e;
/* rgb */ color: rgb(64, 82, 14);
/* oklch */ color: oklch(40.9% 0.093 123.8);
Tailwind
colors: {
  custom: {
    50: '#778253',
    500: '#40520e',
    950: '#000000',
  },
}
SCSS
$custom: #40520e;
$custom-light: #778253;
$custom-dark: #000000;
JSON
{
  "hex": "#40520e",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 14
  },
  "hsl": {
    "h": 75.882,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40918,
    "c": 0.09264,
    "h": 123.8
  },
  "luminance": 0.07156
}

Semantic roles & 50–950 ramp

primary
#40520E
secondary
#482F8C
accent
#3AEE6A
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40520E

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

Preview Lab → · Contrast checker → · Palette generator →

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