#40786A#40786A

#40786A is a mid, moderate teal. Relative luminance 0.156; OKLCH L 53.0% C 0.064 H 175.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#40786A
RGBrgb(64, 120, 106)
HSLhsl(165, 30%, 36%)
HSVhsv(165, 47%, 47%)
CMYKcmyk(46.7%, 0%, 11.7%, 52.9%)
CIE-LABlab(46.40, -22.14, 1.96)
CIE-LCHlch(46.40, 22.23, 174.93°)
OKLaboklab(52.98% -0.0636 0.0049)
OKLCHoklch(52.98% 0.064 175.6)
XYZxyz(11.4313, 15.5627, 16.0344)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40786A #78404E
analogous
#40784E #40786A #406A78
triadic
#40786A #6A4078 #786A40
tetradic
#40786A #4E4078 #78404E #6A7840
square
#40786A #4E4078 #78404E #6A7840
split-complementary
#40786A #78406A #784E40
monochromatic
#152823 #2B5047 #40786A #55A08D #7AB8A9

Accessibility & contrast

On white

5.11
#40786A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#40786A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40786A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40786A#FFFFFF#000000##FFFFFF
##40786A1.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)
#747269
Deuteranopia (green-blind)
#6B6B6B
Tritanopia (blue-blind)
#2B7974
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #40786a;
/* rgb */ color: rgb(64, 120, 106);
/* oklch */ color: oklch(53.0% 0.064 175.6);
Tailwind
colors: {
  custom: {
    50: '#799f94',
    500: '#40786a',
    950: '#000000',
  },
}
SCSS
$custom: #40786a;
$custom-light: #799f94;
$custom-dark: #000000;
JSON
{
  "hex": "#40786a",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 106
  },
  "hsl": {
    "h": 165,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.52983,
    "c": 0.06384,
    "h": 175.6
  },
  "luminance": 0.15564
}

Semantic roles & 50–950 ramp

primary
#40786A
secondary
#A3717D
accent
#617BC7
background
#F7F9F9
surface
#EDF2F1
border
#C8CCCB
text
#090E0D
muted
#7B7E7E

Preview Lab

Preview with #40786A

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

Preview Lab → · Contrast checker → · Palette generator →

#40786A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva