#40796D#40796D

#40796D is a mid, moderate teal. Relative luminance 0.159; OKLCH L 53.3% C 0.064 H 178.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#40796D
RGBrgb(64, 121, 109)
HSLhsl(167, 31%, 36%)
HSVhsv(167, 47%, 47%)
CMYKcmyk(47.1%, 0%, 9.9%, 52.5%)
CIE-LABlab(46.80, -21.89, 0.77)
CIE-LCHlch(46.80, 21.90, 177.98°)
OKLaboklab(53.34% -0.0635 0.0017)
OKLCHoklch(53.34% 0.064 178.5)
XYZxyz(11.7109, 15.8679, 16.9107)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40796D #79404C
analogous
#407951 #40796D #406979
triadic
#40796D #6D4079 #796D40
tetradic
#40796D #514079 #79404C #697940
square
#40796D #514079 #79404C #697940
split-complementary
#40796D #794069 #795140
monochromatic
#162925 #2B5149 #40796D #55A191 #7AB9AC

Accessibility & contrast

On white

5.03
#40796D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#40796D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40796D
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40796D#FFFFFF#000000##FFFFFF
##40796D1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75736D
Deuteranopia (green-blind)
#6C6C6E
Tritanopia (blue-blind)
#297B75
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #40796d;
/* rgb */ color: rgb(64, 121, 109);
/* oklch */ color: oklch(53.3% 0.064 178.5);
Tailwind
colors: {
  custom: {
    50: '#79a096',
    500: '#40796d',
    950: '#000000',
  },
}
SCSS
$custom: #40796d;
$custom-light: #79a096;
$custom-dark: #000000;
JSON
{
  "hex": "#40796d",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 109
  },
  "hsl": {
    "h": 167.368,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.53338,
    "c": 0.06351,
    "h": 178.5
  },
  "luminance": 0.15869
}

Semantic roles & 50–950 ramp

primary
#40796D
secondary
#A4717C
accent
#6176C7
background
#F7F9F9
surface
#EEF2F2
border
#C9CCCC
text
#090E0D
muted
#7B7E7E

Preview Lab

Preview with #40796D

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

Preview Lab → · Contrast checker → · Palette generator →

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