#40560F#40560F

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

Color values

HEX#40560F
RGBrgb(64, 86, 15)
HSLhsl(79, 70%, 20%)
HSVhsv(79, 83%, 34%)
CMYKcmyk(25.6%, 0%, 82.6%, 66.3%)
CIE-LABlab(33.52, -19.72, 35.77)
CIE-LCHlch(33.52, 40.84, 118.88°)
OKLaboklab(42.02% -0.0571 0.0791)
OKLCHoklch(42.02% 0.098 125.8)
XYZxyz(5.5284, 7.7800, 1.6623)
Luminance0.0778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40560F #250F56
analogous
#56490F #40560F #1C560F
triadic
#40560F #0F4056 #560F40
tetradic
#40560F #0F5649 #250F56 #560F1C
square
#40560F #0F5649 #250F56 #560F1C
split-complementary
#40560F #0F1C56 #490F56
monochromatic
#131A05 #192206 #40560F #678A18 #8EBE21

Accessibility & contrast

On white

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

On black

2.56
#40560F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40560F#FFFFFF#000000##FFFFFF
##40560F1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5001
Deuteranopia (green-blind)
#584E16
Tritanopia (blue-blind)
#435149
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #40560f;
/* rgb */ color: rgb(64, 86, 15);
/* oklch */ color: oklch(42.0% 0.098 125.8);
Tailwind
colors: {
  custom: {
    50: '#788554',
    500: '#40560f',
    950: '#000000',
  },
}
SCSS
$custom: #40560f;
$custom-light: #788554;
$custom-dark: #000000;
JSON
{
  "hex": "#40560f",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 15
  },
  "hsl": {
    "h": 78.592,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.42022,
    "c": 0.09757,
    "h": 125.8
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#40560F
secondary
#4E3190
accent
#3BED72
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #40560F

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

Preview Lab → · Contrast checker → · Palette generator →

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