#40987E#40987E

#40987E is a mid, moderate teal. Relative luminance 0.251; OKLCH L 61.9% C 0.094 H 170.9°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#40987E
RGBrgb(64, 152, 126)
HSLhsl(162, 41%, 42%)
HSVhsv(162, 58%, 60%)
CMYKcmyk(57.9%, 0%, 17.1%, 40.4%)
CIE-LABlab(57.13, -32.89, 5.82)
CIE-LCHlch(57.13, 33.41, 169.96°)
OKLaboklab(61.86% -0.0927 0.0149)
OKLCHoklch(61.86% 0.094 170.9)
XYZxyz(17.1067, 25.0512, 23.6685)
Luminance0.2505 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40987E #98405A
analogous
#409852 #40987E #408698
triadic
#40987E #7E4098 #987E40
tetradic
#40987E #524098 #98405A #869840
square
#40987E #524098 #98405A #869840
split-complementary
#40987E #984086 #985240
monochromatic
#1C4237 #2E6D5A #40987E #5BBA9E #86CCB8

Accessibility & contrast

On white

3.49
#40987E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#40987E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40987E
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40987E#FFFFFF#000000##000000
##40987E1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948F7D
Deuteranopia (green-blind)
#878580
Tritanopia (blue-blind)
#0A9990
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #40987e;
/* rgb */ color: rgb(64, 152, 126);
/* oklch */ color: oklch(61.9% 0.094 170.9);
Tailwind
colors: {
  custom: {
    50: '#7db7a3',
    500: '#40987e',
    950: '#000000',
  },
}
SCSS
$custom: #40987e;
$custom-light: #7db7a3;
$custom-dark: #000000;
JSON
{
  "hex": "#40987e",
  "rgb": {
    "r": 64,
    "g": 152,
    "b": 126
  },
  "hsl": {
    "h": 162.273,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.6186,
    "c": 0.09387,
    "h": 170.9
  },
  "luminance": 0.25053
}

Semantic roles & 50–950 ramp

primary
#40987E
secondary
#B77D8E
accent
#577BD1
background
#F8FBFA
surface
#EFF6F3
border
#CAD0CD
text
#0A110F
muted
#7C807F

Preview Lab

Preview with #40987E

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

Preview Lab → · Contrast checker → · Palette generator →

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