#40581C#40581C

#40581C is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.7% C 0.091 H 128.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#40581C
RGBrgb(64, 88, 28)
HSLhsl(84, 52%, 23%)
HSVhsv(84, 68%, 35%)
CMYKcmyk(27.3%, 0%, 68.2%, 65.5%)
CIE-LABlab(34.30, -19.81, 30.92)
CIE-LCHlch(34.30, 36.72, 122.65°)
OKLaboklab(42.69% -0.0561 0.0711)
OKLCHoklch(42.69% 0.091 128.3)
XYZxyz(5.8137, 8.1532, 2.3658)
Luminance0.0815 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40581C #341C58
analogous
#58521C #40581C #22581C
triadic
#40581C #1C4058 #581C40
tetradic
#40581C #1C5852 #341C58 #581C22
square
#40581C #1C5852 #341C58 #581C22
split-complementary
#40581C #1C2258 #521C58
monochromatic
#111707 #1E2A0D #40581C #62862B #84B53A

Accessibility & contrast

On white

7.98
#40581C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#40581C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40581C
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40581C#FFFFFF#000000##FFFFFF
##40581C1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5215
Deuteranopia (green-blind)
#595021
Tritanopia (blue-blind)
#42544B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40581c;
/* rgb */ color: rgb(64, 88, 28);
/* oklch */ color: oklch(42.7% 0.091 128.3);
Tailwind
colors: {
  custom: {
    50: '#77875b',
    500: '#40581c',
    950: '#000000',
  },
}
SCSS
$custom: #40581c;
$custom-light: #77875b;
$custom-dark: #000000;
JSON
{
  "hex": "#40581c",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 28
  },
  "hsl": {
    "h": 84,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42686,
    "c": 0.09055,
    "h": 128.3
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#40581C
secondary
#60428E
accent
#4DDB86
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40581C

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

Preview Lab → · Contrast checker → · Palette generator →

#40581C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva