#40786F#40786F

#40786F is a mid, moderate teal. Relative luminance 0.157; OKLCH L 53.1% C 0.061 H 182.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#40786F
RGBrgb(64, 120, 111)
HSLhsl(170, 30%, 36%)
HSVhsv(170, 47%, 47%)
CMYKcmyk(46.7%, 0%, 7.5%, 52.9%)
CIE-LABlab(46.54, -20.84, -0.80)
CIE-LCHlch(46.54, 20.86, 182.20°)
OKLaboklab(53.15% -0.0612 -0.0025)
OKLCHoklch(53.15% 0.061 182.3)
XYZxyz(11.6989, 15.6697, 17.4439)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40786F #784049
analogous
#407853 #40786F #406578
triadic
#40786F #6F4078 #786F40
tetradic
#40786F #534078 #784049 #657840
square
#40786F #534078 #784049 #657840
split-complementary
#40786F #784065 #785340
monochromatic
#152825 #2B504A #40786F #55A094 #7AB8AE

Accessibility & contrast

On white

5.08
#40786F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#40786F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40786F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40786F#FFFFFF#000000##FFFFFF
##40786F1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73726F
Deuteranopia (green-blind)
#6A6B70
Tritanopia (blue-blind)
#287A75
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #40786f;
/* rgb */ color: rgb(64, 120, 111);
/* oklch */ color: oklch(53.1% 0.061 182.3);
Tailwind
colors: {
  custom: {
    50: '#799f98',
    500: '#40786f',
    950: '#000000',
  },
}
SCSS
$custom: #40786f;
$custom-light: #799f98;
$custom-dark: #000000;
JSON
{
  "hex": "#40786f",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 111
  },
  "hsl": {
    "h": 170.357,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.53145,
    "c": 0.0613,
    "h": 182.3
  },
  "luminance": 0.15671
}

Semantic roles & 50–950 ramp

primary
#40786F
secondary
#A37179
accent
#6171C7
background
#F7F9F9
surface
#EEF2F2
border
#C9CCCC
text
#090E0D
muted
#7B7E7E

Preview Lab

Preview with #40786F

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

Preview Lab → · Contrast checker → · Palette generator →

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