#40540E#40540E

#40540E is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.5% C 0.095 H 124.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#40540E
RGBrgb(64, 84, 14)
HSLhsl(77, 71%, 19%)
HSVhsv(77, 83%, 33%)
CMYKcmyk(23.8%, 0%, 83.3%, 67.1%)
CIE-LABlab(32.84, -18.72, 35.49)
CIE-LCHlch(32.84, 40.12, 117.81°)
OKLaboklab(41.47% -0.0545 0.0783)
OKLCHoklch(41.47% 0.095 124.8)
XYZxyz(5.3640, 7.4623, 1.5731)
Luminance0.0746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40540E #220E54
analogous
#54450E #40540E #1D540E
triadic
#40540E #0E4054 #540E40
tetradic
#40540E #0E5445 #220E54 #540E1D
square
#40540E #0E5445 #220E54 #540E1D
split-complementary
#40540E #0E1D54 #450E54
monochromatic
#141A04 #182005 #40540E #688817 #90BD1F

Accessibility & contrast

On white

8.43
#40540E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#40540E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40540E
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40540E#FFFFFF#000000##FFFFFF
##40540E1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E01
Deuteranopia (green-blind)
#564D15
Tritanopia (blue-blind)
#434F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40540e;
/* rgb */ color: rgb(64, 84, 14);
/* oklch */ color: oklch(41.5% 0.095 124.8);
Tailwind
colors: {
  custom: {
    50: '#778453',
    500: '#40540e',
    950: '#000000',
  },
}
SCSS
$custom: #40540e;
$custom-light: #778453;
$custom-dark: #000000;
JSON
{
  "hex": "#40540e",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 77.143,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41466,
    "c": 0.0954,
    "h": 124.8
  },
  "luminance": 0.07462
}

Semantic roles & 50–950 ramp

primary
#40540E
secondary
#4B2F8E
accent
#3AEE6D
background
#F7F8F4
surface
#EDEFE7
border
#C8CAC3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40540E

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

Preview Lab → · Contrast checker → · Palette generator →

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