#40841F#40841F

#40841F is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.8% C 0.150 H 137.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#40841F
RGBrgb(64, 132, 31)
HSLhsl(100, 62%, 32%)
HSVhsv(100, 77%, 52%)
CMYKcmyk(51.5%, 0%, 76.5%, 48.2%)
CIE-LABlab(49.12, -39.92, 44.96)
CIE-LCHlch(49.12, 60.12, 131.60°)
OKLaboklab(54.81% -0.1105 0.101)
OKLCHoklch(54.81% 0.15 137.6)
XYZxyz(10.6126, 17.6907, 4.1515)
Luminance0.1769 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40841F #631F84
analogous
#73841F #40841F #1F8431
triadic
#40841F #1F4084 #841F40
tetradic
#40841F #1F7384 #631F84 #84311F
square
#40841F #1F7384 #631F84 #84311F
split-complementary
#40841F #311F84 #841F73
monochromatic
#102108 #285213 #40841F #58B62B #77D449

Accessibility & contrast

On white

4.63
#40841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#40841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #40841F
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40841F#FFFFFF#000000##FFFFFF
##40841F1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780A
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#3B7F71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40841f;
/* rgb */ color: rgb(64, 132, 31);
/* oklch */ color: oklch(54.8% 0.150 137.6);
Tailwind
colors: {
  custom: {
    50: '#7ca862',
    500: '#40841f',
    950: '#000000',
  },
}
SCSS
$custom: #40841f;
$custom-light: #7ca862;
$custom-dark: #000000;
JSON
{
  "hex": "#40841f",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 100.396,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54809,
    "c": 0.14973,
    "h": 137.6
  },
  "luminance": 0.17691
}

Semantic roles & 50–950 ramp

primary
#40841F
secondary
#9348B7
accent
#43E5B0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40841F

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

Preview Lab → · Contrast checker → · Palette generator →

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