#40811E#40811E

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

Color values

HEX#40811E
RGBrgb(64, 129, 30)
HSLhsl(99, 62%, 31%)
HSVhsv(99, 77%, 51%)
CMYKcmyk(50.4%, 0%, 76.7%, 49.4%)
CIE-LABlab(48.11, -38.75, 44.33)
CIE-LCHlch(48.11, 58.88, 131.16°)
OKLaboklab(53.98% -0.1075 0.0995)
OKLCHoklch(53.98% 0.146 137.2)
XYZxyz(10.1986, 16.8835, 3.9495)
Luminance0.1688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40811E #5F1E81
analogous
#71811E #40811E #1E812D
triadic
#40811E #1E4081 #811E40
tetradic
#40811E #1E7181 #5F1E81 #812D1E
square
#40811E #1E7181 #5F1E81 #812D1E
split-complementary
#40811E #2D1E81 #811E71
monochromatic
#0F1E07 #274F12 #40811E #59B32A #76D446

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40811E#FFFFFF#000000##FFFFFF
##40811E1.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)
#85760A
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#3C7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40811e;
/* rgb */ color: rgb(64, 129, 30);
/* oklch */ color: oklch(54.0% 0.146 137.2);
Tailwind
colors: {
  custom: {
    50: '#7ca661',
    500: '#40811e',
    950: '#000000',
  },
}
SCSS
$custom: #40811e;
$custom-light: #7ca661;
$custom-dark: #000000;
JSON
{
  "hex": "#40811e",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 30
  },
  "hsl": {
    "h": 99.394,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5398,
    "c": 0.14648,
    "h": 137.2
  },
  "luminance": 0.16884
}

Semantic roles & 50–950 ramp

primary
#40811E
secondary
#8F47B4
accent
#42E5AD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40811E

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

Preview Lab → · Contrast checker → · Palette generator →

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