#40831F#40831F

#40831F is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.5% C 0.148 H 137.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#40831F
RGBrgb(64, 131, 31)
HSLhsl(100, 62%, 32%)
HSVhsv(100, 76%, 51%)
CMYKcmyk(51.1%, 0%, 76.3%, 48.6%)
CIE-LABlab(48.79, -39.51, 44.63)
CIE-LCHlch(48.79, 59.60, 131.52°)
OKLaboklab(54.54% -0.1094 0.1003)
OKLCHoklch(54.54% 0.148 137.5)
XYZxyz(10.4776, 17.4208, 4.1065)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40831F #621F83
analogous
#72831F #40831F #1F8330
triadic
#40831F #1F4083 #831F40
tetradic
#40831F #1F7283 #621F83 #83301F
square
#40831F #1F7283 #621F83 #83301F
split-complementary
#40831F #301F83 #831F72
monochromatic
#102008 #285213 #40831F #58B42B #77D449

Accessibility & contrast

On white

4.68
#40831F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#40831F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40831F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40831F#FFFFFF#000000##FFFFFF
##40831F1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770B
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#3C7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #40831f;
/* rgb */ color: rgb(64, 131, 31);
/* oklch */ color: oklch(54.5% 0.148 137.5);
Tailwind
colors: {
  custom: {
    50: '#7ca862',
    500: '#40831f',
    950: '#000000',
  },
}
SCSS
$custom: #40831f;
$custom-light: #7ca862;
$custom-dark: #000000;
JSON
{
  "hex": "#40831f",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 100.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54535,
    "c": 0.14845,
    "h": 137.5
  },
  "luminance": 0.17422
}

Semantic roles & 50–950 ramp

primary
#40831F
secondary
#9248B6
accent
#43E5AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40831F

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

Preview Lab → · Contrast checker → · Palette generator →

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