#40560B#40560B

#40560B is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 42.0% C 0.100 H 125.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#40560B
RGBrgb(64, 86, 11)
HSLhsl(78, 77%, 19%)
HSVhsv(78, 87%, 34%)
CMYKcmyk(25.6%, 0%, 87.2%, 66.3%)
CIE-LABlab(33.50, -19.93, 37.12)
CIE-LCHlch(33.50, 42.13, 118.23°)
OKLaboklab(42% -0.058 0.0812)
OKLCHoklch(42% 0.1 125.5)
XYZxyz(5.5026, 7.7696, 1.5263)
Luminance0.0777 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40560B #210B56
analogous
#56470B #40560B #1B560B
triadic
#40560B #0B4056 #560B40
tetradic
#40560B #0B5647 #210B56 #560B1B
square
#40560B #0B5647 #210B56 #560B1B
split-complementary
#40560B #0B1B56 #470B56
monochromatic
#141B03 #182004 #40560B #688C12 #91C319

Accessibility & contrast

On white

8.22
#40560B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#40560B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40560B
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40560B#FFFFFF#000000##FFFFFF
##40560B1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5000
Deuteranopia (green-blind)
#584E13
Tritanopia (blue-blind)
#435148
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40560b;
/* rgb */ color: rgb(64, 86, 11);
/* oklch */ color: oklch(42.0% 0.100 125.5);
Tailwind
colors: {
  custom: {
    50: '#788552',
    500: '#40560b',
    950: '#000000',
  },
}
SCSS
$custom: #40560b;
$custom-light: #788552;
$custom-dark: #000000;
JSON
{
  "hex": "#40560b",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 11
  },
  "hsl": {
    "h": 77.6,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.41997,
    "c": 0.0998,
    "h": 125.5
  },
  "luminance": 0.0777
}

Semantic roles & 50–950 ramp

primary
#40560B
secondary
#492B91
accent
#34F46C
background
#F7F8F4
surface
#EDEFE7
border
#C8CAC3
text
#090B02
muted
#7B7C78

Preview Lab

Preview with #40560B

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

Preview Lab → · Contrast checker → · Palette generator →

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