#40522B#40522B

#40522B is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.3% C 0.065 H 129.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#40522B
RGBrgb(64, 82, 43)
HSLhsl(88, 31%, 25%)
HSVhsv(88, 48%, 32%)
CMYKcmyk(22%, 0%, 47.6%, 67.8%)
CIE-LABlab(32.48, -14.77, 20.60)
CIE-LCHlch(32.48, 25.35, 125.65°)
OKLaboklab(41.28% -0.0407 0.0501)
OKLCHoklch(41.28% 0.065 129.1)
XYZxyz(5.5676, 7.2989, 3.4005)
Luminance0.0730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40522B #3D2B52
analogous
#52512B #40522B #2D522B
triadic
#40522B #2B4052 #522B40
tetradic
#40522B #2B5251 #3D2B52 #522B2D
square
#40522B #2B5251 #3D2B52 #522B2D
split-complementary
#40522B #2B2D52 #512B52
monochromatic
#10140B #212A16 #40522B #5F7A40 #7FA255

Accessibility & contrast

On white

8.54
#40522B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#40522B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40522B
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40522B#FFFFFF#000000##FFFFFF
##40522B1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554D28
Deuteranopia (green-blind)
#534C2D
Tritanopia (blue-blind)
#414F49
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40522b;
/* rgb */ color: rgb(64, 82, 43);
/* oklch */ color: oklch(41.3% 0.065 129.1);
Tailwind
colors: {
  custom: {
    50: '#768265',
    500: '#40522b',
    950: '#000000',
  },
}
SCSS
$custom: #40522b;
$custom-light: #768265;
$custom-dark: #000000;
JSON
{
  "hex": "#40522b",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 43
  },
  "hsl": {
    "h": 87.692,
    "s": 31.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.41277,
    "c": 0.06456,
    "h": 129.1
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

primary
#40522B
secondary
#6B5584
accent
#60C790
background
#F7F7F6
surface
#EDEEEB
border
#C8C9C6
text
#080A05
muted
#7B7C7A

Preview Lab

Preview with #40522B

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

Preview Lab → · Contrast checker → · Palette generator →

#40522B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva