#40812A#40812A

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

Color values

HEX#40812A
RGBrgb(64, 129, 42)
HSLhsl(105, 51%, 34%)
HSVhsv(105, 67%, 51%)
CMYKcmyk(50.4%, 0%, 67.4%, 49.4%)
CIE-LABlab(48.21, -37.74, 39.48)
CIE-LCHlch(48.21, 54.62, 133.70°)
OKLaboklab(54.09% -0.1039 0.091)
OKLCHoklch(54.09% 0.138 138.8)
XYZxyz(10.3821, 16.9569, 4.9160)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40812A #6B2A81
analogous
#6B812A #40812A #2A813F
triadic
#40812A #2A4081 #812A40
tetradic
#40812A #2A6B81 #6B2A81 #813F2A
square
#40812A #2A6B81 #6B2A81 #813F2A
split-complementary
#40812A #3F2A81 #812A6B
monochromatic
#12250C #29531B #40812A #57AF39 #77CA5C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40812A#FFFFFF#000000##FFFFFF
##40812A1.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)
#85761F
Deuteranopia (green-blind)
#7C7031
Tritanopia (blue-blind)
#3B7D6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40812a;
/* rgb */ color: rgb(64, 129, 42);
/* oklch */ color: oklch(54.1% 0.138 138.8);
Tailwind
colors: {
  custom: {
    50: '#7ba668',
    500: '#40812a',
    950: '#000000',
  },
}
SCSS
$custom: #40812a;
$custom-light: #7ba668;
$custom-dark: #000000;
JSON
{
  "hex": "#40812a",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 42
  },
  "hsl": {
    "h": 104.828,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54086,
    "c": 0.13811,
    "h": 138.8
  },
  "luminance": 0.16958
}

Semantic roles & 50–950 ramp

primary
#40812A
secondary
#9957AF
accent
#4DDAB7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #40812A

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

Preview Lab → · Contrast checker → · Palette generator →

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