#40811A#40811A

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

Color values

HEX#40811A
RGBrgb(64, 129, 26)
HSLhsl(98, 66%, 30%)
HSVhsv(98, 80%, 51%)
CMYKcmyk(50.4%, 0%, 79.8%, 49.4%)
CIE-LABlab(48.09, -39.02, 45.73)
CIE-LCHlch(48.09, 60.12, 130.47°)
OKLaboklab(53.95% -0.1085 0.1018)
OKLCHoklch(53.95% 0.149 136.8)
XYZxyz(10.1508, 16.8644, 3.6973)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40811A #5B1A81
analogous
#73811A #40811A #1A8127
triadic
#40811A #1A4081 #811A40
tetradic
#40811A #1A7381 #5B1A81 #81271A
square
#40811A #1A7381 #5B1A81 #81271A
split-complementary
#40811A #271A81 #811A73
monochromatic
#0D1B05 #274E10 #40811A #59B424 #76D83D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40811a;
/* rgb */ color: rgb(64, 129, 26);
/* oklch */ color: oklch(54.0% 0.149 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ca65f',
    500: '#40811a',
    950: '#000000',
  },
}
SCSS
$custom: #40811a;
$custom-light: #7ca65f;
$custom-dark: #000000;
JSON
{
  "hex": "#40811a",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 26
  },
  "hsl": {
    "h": 97.864,
    "s": 66.452,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53952,
    "c": 0.14878,
    "h": 136.8
  },
  "luminance": 0.16865
}

Semantic roles & 50–950 ramp

primary
#40811A
secondary
#8A42B5
accent
#3EE9AA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40811A

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

Preview Lab → · Contrast checker → · Palette generator →

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