#40561F#40561F

#40561F is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 42.2% C 0.085 H 127.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#40561F
RGBrgb(64, 86, 31)
HSLhsl(84, 47%, 23%)
HSVhsv(84, 64%, 34%)
CMYKcmyk(25.6%, 0%, 64%, 66.3%)
CIE-LABlab(33.66, -18.45, 28.69)
CIE-LCHlch(33.66, 34.11, 122.74°)
OKLaboklab(42.18% -0.052 0.0668)
OKLCHoklch(42.18% 0.085 127.9)
XYZxyz(5.6894, 7.8444, 2.5104)
Luminance0.0784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40561F #351F56
analogous
#56501F #40561F #24561F
triadic
#40561F #1F4056 #561F40
tetradic
#40561F #1F5650 #351F56 #561F24
square
#40561F #1F5650 #351F56 #561F24
split-complementary
#40561F #1F2456 #501F56
monochromatic
#111608 #1F290F #40561F #61832F #83B03F

Accessibility & contrast

On white

8.18
#40561F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40561F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40561F#FFFFFF#000000##FFFFFF
##40561F1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40561f;
/* rgb */ color: rgb(64, 86, 31);
/* oklch */ color: oklch(42.2% 0.085 127.9);
Tailwind
colors: {
  custom: {
    50: '#77855d',
    500: '#40561f',
    950: '#000000',
  },
}
SCSS
$custom: #40561f;
$custom-light: #77855d;
$custom-dark: #000000;
JSON
{
  "hex": "#40561f",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 31
  },
  "hsl": {
    "h": 84,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42176,
    "c": 0.08464,
    "h": 127.9
  },
  "luminance": 0.07844
}

Semantic roles & 50–950 ramp

primary
#40561F
secondary
#62468B
accent
#51D787
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40561F

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

Preview Lab → · Contrast checker → · Palette generator →

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