#40831E#40831E

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

Color values

HEX#40831E
RGBrgb(64, 131, 30)
HSLhsl(100, 63%, 32%)
HSVhsv(100, 77%, 51%)
CMYKcmyk(51.1%, 0%, 77.1%, 48.6%)
CIE-LABlab(48.78, -39.58, 44.99)
CIE-LCHlch(48.78, 59.92, 131.34°)
OKLaboklab(54.53% -0.1097 0.1009)
OKLCHoklch(54.53% 0.149 137.4)
XYZxyz(10.4647, 17.4156, 4.0382)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40831E #611E83
analogous
#73831E #40831E #1E832F
triadic
#40831E #1E4083 #831E40
tetradic
#40831E #1E7383 #611E83 #832F1E
square
#40831E #1E7383 #611E83 #832F1E
split-complementary
#40831E #2F1E83 #831E73
monochromatic
#0F1F07 #285113 #40831E #58B529 #76D547

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40831E#FFFFFF#000000##FFFFFF
##40831E1.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)
#877708
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#3C7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #40831e;
/* rgb */ color: rgb(64, 131, 30);
/* oklch */ color: oklch(54.5% 0.149 137.4);
Tailwind
colors: {
  custom: {
    50: '#7ca862',
    500: '#40831e',
    950: '#000000',
  },
}
SCSS
$custom: #40831e;
$custom-light: #7ca862;
$custom-dark: #000000;
JSON
{
  "hex": "#40831e",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 30
  },
  "hsl": {
    "h": 99.802,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54528,
    "c": 0.14905,
    "h": 137.4
  },
  "luminance": 0.17416
}

Semantic roles & 50–950 ramp

primary
#40831E
secondary
#9147B6
accent
#42E6AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40831E

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

Preview Lab → · Contrast checker → · Palette generator →

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