#40873B#40873B

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

Color values

HEX#40873B
RGBrgb(64, 135, 59)
HSLhsl(116, 39%, 38%)
HSVhsv(116, 56%, 53%)
CMYKcmyk(52.6%, 0%, 56.3%, 47.1%)
CIE-LABlab(50.37, -38.31, 33.77)
CIE-LCHlch(50.37, 51.07, 138.60°)
OKLaboklab(55.92% -0.1044 0.0805)
OKLCHoklch(55.92% 0.132 142.4)
XYZxyz(11.5672, 18.7328, 7.1431)
Luminance0.1873 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40873B #823B87
analogous
#66873B #40873B #3B875C
triadic
#40873B #3B4087 #873B40
tetradic
#40873B #3B6687 #823B87 #875C3B
square
#40873B #3B6687 #823B87 #875C3B
split-complementary
#40873B #5C3B87 #873B66
monochromatic
#183216 #2C5C28 #40873B #54B24E #7DC478

Accessibility & contrast

On white

4.42
#40873B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#40873B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40873B
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40873B#FFFFFF#000000##000000
##40873B1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40873b;
/* rgb */ color: rgb(64, 135, 59);
/* oklch */ color: oklch(55.9% 0.132 142.4);
Tailwind
colors: {
  custom: {
    50: '#7baa73',
    500: '#40873b',
    950: '#000000',
  },
}
SCSS
$custom: #40873b;
$custom-light: #7baa73;
$custom-dark: #000000;
JSON
{
  "hex": "#40873b",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 59
  },
  "hsl": {
    "h": 116.053,
    "s": 39.175,
    "l": 38.039
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.1318,
    "h": 142.4
  },
  "luminance": 0.18734
}

Semantic roles & 50–950 ramp

primary
#40873B
secondary
#AA70AE
accent
#59CFC7
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A1008
muted
#7C7F7B

Preview Lab

Preview with #40873B

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

Preview Lab → · Contrast checker → · Palette generator →

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