#40561B#40561B

#40561B is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 42.1% C 0.088 H 127.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#40561B
RGBrgb(64, 86, 27)
HSLhsl(82, 52%, 22%)
HSVhsv(82, 69%, 34%)
CMYKcmyk(25.6%, 0%, 68.6%, 66.3%)
CIE-LABlab(33.61, -18.84, 30.66)
CIE-LCHlch(33.61, 35.98, 121.56°)
OKLaboklab(42.13% -0.0535 0.0704)
OKLCHoklch(42.13% 0.088 127.2)
XYZxyz(5.6400, 7.8246, 2.2499)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40561B #311B56
analogous
#564F1B #40561B #23561B
triadic
#40561B #1B4056 #561B40
tetradic
#40561B #1B564F #311B56 #561B23
square
#40561B #1B564F #311B56 #561B23
split-complementary
#40561B #1B2356 #4F1B56
monochromatic
#111707 #1D270C #40561B #63852A #85B338

Accessibility & contrast

On white

8.19
#40561B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#40561B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40561B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40561B#FFFFFF#000000##FFFFFF
##40561B1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5014
Deuteranopia (green-blind)
#574F1F
Tritanopia (blue-blind)
#42524A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40561b;
/* rgb */ color: rgb(64, 86, 27);
/* oklch */ color: oklch(42.1% 0.088 127.2);
Tailwind
colors: {
  custom: {
    50: '#77855a',
    500: '#40561b',
    950: '#000000',
  },
}
SCSS
$custom: #40561b;
$custom-light: #77855a;
$custom-dark: #000000;
JSON
{
  "hex": "#40561b",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 27
  },
  "hsl": {
    "h": 82.373,
    "s": 52.212,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42128,
    "c": 0.08844,
    "h": 127.2
  },
  "luminance": 0.07825
}

Semantic roles & 50–950 ramp

primary
#40561B
secondary
#5D418C
accent
#4CDC82
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40561B

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

Preview Lab → · Contrast checker → · Palette generator →

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