#40821F#40821F

#40821F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.3% C 0.147 H 137.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#40821F
RGBrgb(64, 130, 31)
HSLhsl(100, 61%, 32%)
HSVhsv(100, 76%, 51%)
CMYKcmyk(50.8%, 0%, 76.2%, 49%)
CIE-LABlab(48.45, -39.10, 44.30)
CIE-LCHlch(48.45, 59.08, 131.43°)
OKLaboklab(54.26% -0.1083 0.0996)
OKLCHoklch(54.26% 0.147 137.4)
XYZxyz(10.3440, 17.1535, 4.0619)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40821F #611F82
analogous
#72821F #40821F #1F8230
triadic
#40821F #1F4082 #821F40
tetradic
#40821F #1F7282 #611F82 #82301F
square
#40821F #1F7282 #611F82 #82301F
split-complementary
#40821F #301F82 #821F72
monochromatic
#0F1F07 #285113 #40821F #58B32B #76D348

Accessibility & contrast

On white

4.74
#40821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#40821F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40821F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40821F#FFFFFF#000000##FFFFFF
##40821F1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760B
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#3C7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40821f;
/* rgb */ color: rgb(64, 130, 31);
/* oklch */ color: oklch(54.3% 0.147 137.4);
Tailwind
colors: {
  custom: {
    50: '#7ca762',
    500: '#40821f',
    950: '#000000',
  },
}
SCSS
$custom: #40821f;
$custom-light: #7ca762;
$custom-dark: #000000;
JSON
{
  "hex": "#40821f",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 100,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54261,
    "c": 0.14717,
    "h": 137.4
  },
  "luminance": 0.17154
}

Semantic roles & 50–950 ramp

primary
#40821F
secondary
#9148B5
accent
#43E5AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40821F

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

Preview Lab → · Contrast checker → · Palette generator →

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