#40542E#40542E

#40542E is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.9% C 0.064 H 131.3°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#40542E
RGBrgb(64, 84, 46)
HSLhsl(92, 29%, 25%)
HSVhsv(92, 45%, 33%)
CMYKcmyk(23.8%, 0%, 45.2%, 67.1%)
CIE-LABlab(33.20, -15.45, 19.74)
CIE-LCHlch(33.20, 25.07, 128.06°)
OKLaboklab(41.87% -0.0425 0.0483)
OKLCHoklch(41.87% 0.064 131.3)
XYZxyz(5.7777, 7.6278, 3.7521)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40542E #422E54
analogous
#53542E #40542E #2E542F
triadic
#40542E #2E4054 #542E40
tetradic
#40542E #2E5354 #422E54 #542F2E
square
#40542E #2E5354 #422E54 #542F2E
split-complementary
#40542E #2F2E54 #542E53
monochromatic
#0F140B #222C18 #40542E #5E7C44 #7CA359

Accessibility & contrast

On white

8.31
#40542E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#40542E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40542E
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40542E#FFFFFF#000000##FFFFFF
##40542E1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574F2B
Deuteranopia (green-blind)
#544E30
Tritanopia (blue-blind)
#41514B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40542e;
/* rgb */ color: rgb(64, 84, 46);
/* oklch */ color: oklch(41.9% 0.064 131.3);
Tailwind
colors: {
  custom: {
    50: '#768467',
    500: '#40542e',
    950: '#000000',
  },
}
SCSS
$custom: #40542e;
$custom-light: #768467;
$custom-dark: #000000;
JSON
{
  "hex": "#40542e",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 46
  },
  "hsl": {
    "h": 91.579,
    "s": 29.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.41871,
    "c": 0.0643,
    "h": 131.3
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#40542E
secondary
#705886
accent
#62C597
background
#F7F8F6
surface
#EDEFEB
border
#C8CAC6
text
#080A06
muted
#7B7C7A

Preview Lab

Preview with #40542E

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

Preview Lab → · Contrast checker → · Palette generator →

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