#40795B#40795B

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

Color values

HEX#40795B
RGBrgb(64, 121, 91)
HSLhsl(148, 31%, 36%)
HSVhsv(148, 47%, 47%)
CMYKcmyk(47.1%, 0%, 24.8%, 52.5%)
CIE-LABlab(46.34, -26.23, 10.74)
CIE-LCHlch(46.34, 28.34, 157.72°)
OKLaboklab(52.81% -0.0723 0.0275)
OKLCHoklch(52.81% 0.077 159.2)
XYZxyz(10.8392, 15.5193, 12.3198)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40795B #79405E
analogous
#427940 #40795B #407978
triadic
#40795B #5B4079 #795B40
tetradic
#40795B #404279 #79405E #797840
square
#40795B #404279 #79405E #797840
split-complementary
#40795B #784079 #794042
monochromatic
#16291F #2B513D #40795B #55A179 #7AB998

Accessibility & contrast

On white

5.12
#40795B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#40795B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40795B
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40795B#FFFFFF#000000##FFFFFF
##40795B1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#787159
Deuteranopia (green-blind)
#6F6B5D
Tritanopia (blue-blind)
#317871
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #40795b;
/* rgb */ color: rgb(64, 121, 91);
/* oklch */ color: oklch(52.8% 0.077 159.2);
Tailwind
colors: {
  custom: {
    50: '#78a089',
    500: '#40795b',
    950: '#000000',
  },
}
SCSS
$custom: #40795b;
$custom-light: #78a089;
$custom-dark: #000000;
JSON
{
  "hex": "#40795b",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 91
  },
  "hsl": {
    "h": 148.421,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.52809,
    "c": 0.07738,
    "h": 159.2
  },
  "luminance": 0.1552
}

Semantic roles & 50–950 ramp

primary
#40795B
secondary
#A4718C
accent
#6197C7
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#090E0B
muted
#7B7E7C

Preview Lab

Preview with #40795B

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

Preview Lab → · Contrast checker → · Palette generator →

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