#40812C#40812C

#40812C is a mid, vivid green. Relative luminance 0.170; OKLCH L 54.1% C 0.137 H 139.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#40812C
RGBrgb(64, 129, 44)
HSLhsl(106, 49%, 34%)
HSVhsv(106, 66%, 51%)
CMYKcmyk(50.4%, 0%, 65.9%, 49.4%)
CIE-LABlab(48.22, -37.54, 38.59)
CIE-LCHlch(48.22, 53.84, 134.20°)
OKLaboklab(54.11% -0.1032 0.0894)
OKLCHoklch(54.11% 0.137 139.1)
XYZxyz(10.4188, 16.9716, 5.1092)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40812C #6D2C81
analogous
#6B812C #40812C #2C8143
triadic
#40812C #2C4081 #812C40
tetradic
#40812C #2C6B81 #6D2C81 #81432C
square
#40812C #2C6B81 #6D2C81 #81432C
split-complementary
#40812C #432C81 #812C6B
monochromatic
#13260D #29531C #40812C #57AF3C #78C85F

Accessibility & contrast

On white

4.78
#40812C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#40812C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40812C
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40812C#FFFFFF#000000##FFFFFF
##40812C1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857622
Deuteranopia (green-blind)
#7C7033
Tritanopia (blue-blind)
#3A7D6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40812c;
/* rgb */ color: rgb(64, 129, 44);
/* oklch */ color: oklch(54.1% 0.137 139.1);
Tailwind
colors: {
  custom: {
    50: '#7ba669',
    500: '#40812c',
    950: '#000000',
  },
}
SCSS
$custom: #40812c;
$custom-light: #7ba669;
$custom-dark: #000000;
JSON
{
  "hex": "#40812c",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 44
  },
  "hsl": {
    "h": 105.882,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54107,
    "c": 0.13652,
    "h": 139.1
  },
  "luminance": 0.16972
}

Semantic roles & 50–950 ramp

primary
#40812C
secondary
#9B5AAF
accent
#4FD9B8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #40812C

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

Preview Lab → · Contrast checker → · Palette generator →

#40812C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva