#40873A#40873A

#40873A is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.9% C 0.133 H 142.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#40873A
RGBrgb(64, 135, 58)
HSLhsl(115, 40%, 38%)
HSVhsv(115, 57%, 53%)
CMYKcmyk(52.6%, 0%, 57%, 47.1%)
CIE-LABlab(50.36, -38.44, 34.27)
CIE-LCHlch(50.36, 51.50, 138.29°)
OKLaboklab(55.91% -0.1048 0.0815)
OKLCHoklch(55.91% 0.133 142.1)
XYZxyz(11.5415, 18.7225, 7.0078)
Luminance0.1872 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40873A #813A87
analogous
#66873A #40873A #3A875B
triadic
#40873A #3A4087 #873A40
tetradic
#40873A #3A6687 #813A87 #875B3A
square
#40873A #3A6687 #813A87 #875B3A
split-complementary
#40873A #5B3A87 #873A66
monochromatic
#173115 #2C5C28 #40873A #54B24C #7DC577

Accessibility & contrast

On white

4.43
#40873A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#40873A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40873A
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40873A#FFFFFF#000000##000000
##40873A1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7C33
Deuteranopia (green-blind)
#817540
Tritanopia (blue-blind)
#378376
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #40873a;
/* rgb */ color: rgb(64, 135, 58);
/* oklch */ color: oklch(55.9% 0.133 142.1);
Tailwind
colors: {
  custom: {
    50: '#7baa72',
    500: '#40873a',
    950: '#000000',
  },
}
SCSS
$custom: #40873a;
$custom-light: #7baa72;
$custom-dark: #000000;
JSON
{
  "hex": "#40873a",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 58
  },
  "hsl": {
    "h": 115.325,
    "s": 39.896,
    "l": 37.843
  },
  "oklch": {
    "l": 0.5591,
    "c": 0.13273,
    "h": 142.1
  },
  "luminance": 0.18723
}

Semantic roles & 50–950 ramp

primary
#40873A
secondary
#A96FAE
accent
#58D0C6
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A1008
muted
#7C7F7B

Preview Lab

Preview with #40873A

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

Preview Lab → · Contrast checker → · Palette generator →

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