#40796E#40796E

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

Color values

HEX#40796E
RGBrgb(64, 121, 110)
HSLhsl(168, 31%, 36%)
HSVhsv(168, 47%, 47%)
CMYKcmyk(47.1%, 0%, 9.1%, 52.5%)
CIE-LABlab(46.83, -21.63, 0.22)
CIE-LCHlch(46.83, 21.63, 179.42°)
OKLaboklab(53.37% -0.063 0.0002)
OKLCHoklch(53.37% 0.063 179.8)
XYZxyz(11.7651, 15.8896, 17.1959)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40796E #79404B
analogous
#407952 #40796E #406879
triadic
#40796E #6E4079 #796E40
tetradic
#40796E #524079 #79404B #687940
square
#40796E #524079 #79404B #687940
split-complementary
#40796E #794068 #795240
monochromatic
#162925 #2B514A #40796E #55A192 #7AB9AD

Accessibility & contrast

On white

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

On black

4.18
#40796E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40796E#FFFFFF#000000##FFFFFF
##40796E1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75736E
Deuteranopia (green-blind)
#6B6C6F
Tritanopia (blue-blind)
#297B76
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #40796e;
/* rgb */ color: rgb(64, 121, 110);
/* oklch */ color: oklch(53.4% 0.063 179.8);
Tailwind
colors: {
  custom: {
    50: '#79a097',
    500: '#40796e',
    950: '#000000',
  },
}
SCSS
$custom: #40796e;
$custom-light: #79a097;
$custom-dark: #000000;
JSON
{
  "hex": "#40796e",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 110
  },
  "hsl": {
    "h": 168.421,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5337,
    "c": 0.06301,
    "h": 179.8
  },
  "luminance": 0.15891
}

Semantic roles & 50–950 ramp

primary
#40796E
secondary
#A4717B
accent
#6175C7
background
#F7F9F9
surface
#EEF2F2
border
#C9CCCC
text
#090E0D
muted
#7B7E7E

Preview Lab

Preview with #40796E

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

Preview Lab → · Contrast checker → · Palette generator →

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