#40811B#40811B

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

Color values

HEX#40811B
RGBrgb(64, 129, 27)
HSLhsl(98, 65%, 31%)
HSVhsv(98, 79%, 51%)
CMYKcmyk(50.4%, 0%, 79.1%, 49.4%)
CIE-LABlab(48.09, -38.96, 45.40)
CIE-LCHlch(48.09, 59.82, 130.64°)
OKLaboklab(53.96% -0.1082 0.1013)
OKLCHoklch(53.96% 0.148 136.9)
XYZxyz(10.1621, 16.8689, 3.7572)
Luminance0.1687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40811B #5C1B81
analogous
#73811B #40811B #1B8129
triadic
#40811B #1B4081 #811B40
tetradic
#40811B #1B7381 #5C1B81 #81291B
square
#40811B #1B7381 #5C1B81 #81291B
split-complementary
#40811B #291B81 #811B73
monochromatic
#0E1C06 #274E10 #40811B #59B426 #76D73F

Accessibility & contrast

On white

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

On black

4.37
#40811B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40811B#FFFFFF#000000##FFFFFF
##40811B1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40811b;
/* rgb */ color: rgb(64, 129, 27);
/* oklch */ color: oklch(54.0% 0.148 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ca660',
    500: '#40811b',
    950: '#000000',
  },
}
SCSS
$custom: #40811b;
$custom-light: #7ca660;
$custom-dark: #000000;
JSON
{
  "hex": "#40811b",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 98.235,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53959,
    "c": 0.14823,
    "h": 136.9
  },
  "luminance": 0.1687
}

Semantic roles & 50–950 ramp

primary
#40811B
secondary
#8B43B5
accent
#3FE8AB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40811B

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

Preview Lab → · Contrast checker → · Palette generator →

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