#40873D#40873D

#40873D is a mid, vivid green. Relative luminance 0.188; OKLCH L 56.0% C 0.130 H 142.9°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#40873D
RGBrgb(64, 135, 61)
HSLhsl(118, 38%, 38%)
HSVhsv(118, 55%, 53%)
CMYKcmyk(52.6%, 0%, 54.8%, 47.1%)
CIE-LABlab(50.40, -38.04, 32.78)
CIE-LCHlch(50.40, 50.22, 139.25°)
OKLaboklab(55.95% -0.1036 0.0784)
OKLCHoklch(55.95% 0.13 142.9)
XYZxyz(11.6200, 18.7540, 7.4215)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40873D #843D87
analogous
#65873D #40873D #3D875F
triadic
#40873D #3D4087 #873D40
tetradic
#40873D #3D6587 #843D87 #875F3D
square
#40873D #3D6587 #843D87 #875F3D
split-complementary
#40873D #5F3D87 #873D65
monochromatic
#183317 #2C5D2A #40873D #55B051 #7EC37B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40873D#FFFFFF#000000##000000
##40873D1.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)
#8A7C36
Deuteranopia (green-blind)
#807542
Tritanopia (blue-blind)
#368376
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #40873d;
/* rgb */ color: rgb(64, 135, 61);
/* oklch */ color: oklch(56.0% 0.130 142.9);
Tailwind
colors: {
  custom: {
    50: '#7baa74',
    500: '#40873d',
    950: '#000000',
  },
}
SCSS
$custom: #40873d;
$custom-light: #7baa74;
$custom-dark: #000000;
JSON
{
  "hex": "#40873d",
  "rgb": {
    "r": 64,
    "g": 135,
    "b": 61
  },
  "hsl": {
    "h": 117.568,
    "s": 37.755,
    "l": 38.431
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.12992,
    "h": 142.9
  },
  "luminance": 0.18755
}

Semantic roles & 50–950 ramp

primary
#40873D
secondary
#AB73AD
accent
#5ACEC9
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A1008
muted
#7C7F7B

Preview Lab

Preview with #40873D

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

Preview Lab → · Contrast checker → · Palette generator →

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