#40811F#40811F

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

Color values

HEX#40811F
RGBrgb(64, 129, 31)
HSLhsl(100, 61%, 31%)
HSVhsv(100, 76%, 51%)
CMYKcmyk(50.4%, 0%, 76%, 49.4%)
CIE-LABlab(48.12, -38.68, 43.97)
CIE-LCHlch(48.12, 58.56, 131.34°)
OKLaboklab(53.99% -0.1072 0.0989)
OKLCHoklch(53.99% 0.146 137.3)
XYZxyz(10.2116, 16.8887, 4.0178)
Luminance0.1689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40811F #601F81
analogous
#71811F #40811F #1F812F
triadic
#40811F #1F4081 #811F40
tetradic
#40811F #1F7181 #601F81 #812F1F
square
#40811F #1F7181 #601F81 #812F1F
split-complementary
#40811F #2F1F81 #811F71
monochromatic
#0F1E07 #285013 #40811F #58B22B #76D347

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40811F#FFFFFF#000000##FFFFFF
##40811F1.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)
#85760C
Deuteranopia (green-blind)
#7D7029
Tritanopia (blue-blind)
#3C7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40811f;
/* rgb */ color: rgb(64, 129, 31);
/* oklch */ color: oklch(54.0% 0.146 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ca662',
    500: '#40811f',
    950: '#000000',
  },
}
SCSS
$custom: #40811f;
$custom-light: #7ca662;
$custom-dark: #000000;
JSON
{
  "hex": "#40811f",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 99.796,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53987,
    "c": 0.14587,
    "h": 137.3
  },
  "luminance": 0.16889
}

Semantic roles & 50–950 ramp

primary
#40811F
secondary
#9048B4
accent
#43E4AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40811F

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

Preview Lab → · Contrast checker → · Palette generator →

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