#40887F#40887F

#40887F is a mid, moderate teal. Relative luminance 0.202; OKLCH L 57.8% C 0.074 H 184.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#40887F
RGBrgb(64, 136, 127)
HSLhsl(173, 36%, 39%)
HSVhsv(173, 53%, 53%)
CMYKcmyk(52.9%, 0%, 6.6%, 46.7%)
CIE-LABlab(52.10, -24.84, -2.05)
CIE-LCHlch(52.10, 24.92, 184.72°)
OKLaboklab(57.79% -0.0735 -0.0059)
OKLCHoklch(57.79% 0.074 184.6)
XYZxyz(14.7477, 20.2293, 23.2020)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40887F #884049
analogous
#40885B #40887F #406D88
triadic
#40887F #7F4088 #887F40
tetradic
#40887F #5B4088 #884049 #6D8840
square
#40887F #5B4088 #884049 #6D8840
split-complementary
#40887F #88406D #885B40
monochromatic
#193531 #2C5E58 #40887F #56AFA4 #7FC3BB

Accessibility & contrast

On white

4.16
#40887F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#40887F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40887F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40887F#FFFFFF#000000##000000
##40887F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#82817F
Deuteranopia (green-blind)
#767980
Tritanopia (blue-blind)
#158B85
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #40887f;
/* rgb */ color: rgb(64, 136, 127);
/* oklch */ color: oklch(57.8% 0.074 184.6);
Tailwind
colors: {
  custom: {
    50: '#7baba4',
    500: '#40887f',
    950: '#000000',
  },
}
SCSS
$custom: #40887f;
$custom-light: #7baba4;
$custom-dark: #000000;
JSON
{
  "hex": "#40887f",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 127
  },
  "hsl": {
    "h": 172.5,
    "s": 36,
    "l": 39.216
  },
  "oklch": {
    "l": 0.57788,
    "c": 0.07372,
    "h": 184.6
  },
  "luminance": 0.20231
}

Semantic roles & 50–950 ramp

primary
#40887F
secondary
#AD767D
accent
#5C6ACC
background
#F7FAFA
surface
#EEF4F4
border
#C9CECE
text
#0A100F
muted
#7C7F7F

Preview Lab

Preview with #40887F

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

Preview Lab → · Contrast checker → · Palette generator →

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