#40811D#40811D

#40811D is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.0% C 0.147 H 137.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#40811D
RGBrgb(64, 129, 29)
HSLhsl(99, 63%, 31%)
HSVhsv(99, 78%, 51%)
CMYKcmyk(50.4%, 0%, 77.5%, 49.4%)
CIE-LABlab(48.11, -38.82, 44.70)
CIE-LCHlch(48.11, 59.20, 130.98°)
OKLaboklab(53.97% -0.1077 0.1001)
OKLCHoklch(53.97% 0.147 137.1)
XYZxyz(10.1861, 16.8785, 3.8833)
Luminance0.1688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40811D #5E1D81
analogous
#72811D #40811D #1D812C
triadic
#40811D #1D4081 #811D40
tetradic
#40811D #1D7281 #5E1D81 #812C1D
square
#40811D #1D7281 #5E1D81 #812C1D
split-complementary
#40811D #2C1D81 #811D72
monochromatic
#0E1D07 #274F12 #40811D #59B328 #76D544

Accessibility & contrast

On white

4.80
#40811D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#40811D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40811D
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40811D#FFFFFF#000000##FFFFFF
##40811D1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857607
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#3C7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40811d;
/* rgb */ color: rgb(64, 129, 29);
/* oklch */ color: oklch(54.0% 0.147 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ca661',
    500: '#40811d',
    950: '#000000',
  },
}
SCSS
$custom: #40811d;
$custom-light: #7ca661;
$custom-dark: #000000;
JSON
{
  "hex": "#40811d",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 29
  },
  "hsl": {
    "h": 99,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53973,
    "c": 0.14708,
    "h": 137.1
  },
  "luminance": 0.16879
}

Semantic roles & 50–950 ramp

primary
#40811D
secondary
#8D46B4
accent
#41E6AD
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40811D

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

Preview Lab → · Contrast checker → · Palette generator →

#40811D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva