#40787E#40787E

#40787E is a mid, muted teal. Relative luminance 0.160; OKLCH L 53.7% C 0.060 H 204.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#40787E
RGBrgb(64, 120, 126)
HSLhsl(186, 33%, 37%)
HSVhsv(186, 49%, 49%)
CMYKcmyk(49.2%, 4.8%, 0%, 50.6%)
CIE-LABlab(47.01, -16.69, -9.01)
CIE-LCHlch(47.01, 18.96, 208.37°)
OKLaboklab(53.68% -0.0543 -0.0248)
OKLCHoklch(53.68% 0.06 204.6)
XYZxyz(12.5953, 16.0282, 22.1646)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40787E #7E4640
analogous
#407E65 #40787E #40597E
triadic
#40787E #7E4078 #787E40
tetradic
#40787E #65407E #7E4640 #597E40
square
#40787E #65407E #7E4640 #597E40
split-complementary
#40787E #7E4059 #7E6540
monochromatic
#172B2D #2B5155 #40787E #559FA7 #7CB6BC

Accessibility & contrast

On white

4.99
#40787E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#40787E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40787E
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40787E#FFFFFF#000000##FFFFFF
##40787E1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70747E
Deuteranopia (green-blind)
#666C7E
Tritanopia (blue-blind)
#1E7C7A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #40787e;
/* rgb */ color: rgb(64, 120, 126);
/* oklch */ color: oklch(53.7% 0.060 204.6);
Tailwind
colors: {
  custom: {
    50: '#7a9fa3',
    500: '#40787e',
    950: '#000000',
  },
}
SCSS
$custom: #40787e;
$custom-light: #7a9fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#40787e",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 126
  },
  "hsl": {
    "h": 185.806,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.53683,
    "c": 0.05974,
    "h": 204.6
  },
  "luminance": 0.16029
}

Semantic roles & 50–950 ramp

primary
#40787E
secondary
#A77873
accent
#695FC9
background
#F7F9FA
surface
#EEF2F3
border
#C9CCCD
text
#090E0F
muted
#7B7E7F

Preview Lab

Preview with #40787E

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

Preview Lab → · Contrast checker → · Palette generator →

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