#40795C#40795C

#40795C is a mid, moderate green. Relative luminance 0.155; OKLCH L 52.8% C 0.076 H 160.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#40795C
RGBrgb(64, 121, 92)
HSLhsl(149, 31%, 36%)
HSVhsv(149, 47%, 47%)
CMYKcmyk(47.1%, 0%, 24%, 52.5%)
CIE-LABlab(46.36, -26.00, 10.19)
CIE-LCHlch(46.36, 27.93, 158.60°)
OKLaboklab(52.84% -0.0718 0.0261)
OKLCHoklch(52.84% 0.076 160)
XYZxyz(10.8827, 15.5366, 12.5485)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40795C #79405D
analogous
#417940 #40795C #407979
triadic
#40795C #5C4079 #795C40
tetradic
#40795C #404179 #79405D #797940
square
#40795C #404179 #79405D #797940
split-complementary
#40795C #794079 #794041
monochromatic
#16291F #2B513E #40795C #55A17A #7AB999

Accessibility & contrast

On white

5.11
#40795C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#40795C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40795C
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40795C#FFFFFF#000000##FFFFFF
##40795C1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#78725A
Deuteranopia (green-blind)
#6F6B5E
Tritanopia (blue-blind)
#317971
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #40795c;
/* rgb */ color: rgb(64, 121, 92);
/* oklch */ color: oklch(52.8% 0.076 160.0);
Tailwind
colors: {
  custom: {
    50: '#78a08a',
    500: '#40795c',
    950: '#000000',
  },
}
SCSS
$custom: #40795c;
$custom-light: #78a08a;
$custom-dark: #000000;
JSON
{
  "hex": "#40795c",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 92
  },
  "hsl": {
    "h": 149.474,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.52836,
    "c": 0.07642,
    "h": 160
  },
  "luminance": 0.15537
}

Semantic roles & 50–950 ramp

primary
#40795C
secondary
#A4718B
accent
#6195C7
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#090E0B
muted
#7B7E7C

Preview Lab

Preview with #40795C

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

Preview Lab → · Contrast checker → · Palette generator →

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