#40795F#40795F

#40795F is a mid, moderate teal. Relative luminance 0.156; OKLCH L 52.9% C 0.074 H 162.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#40795F
RGBrgb(64, 121, 95)
HSLhsl(153, 31%, 36%)
HSVhsv(153, 47%, 47%)
CMYKcmyk(47.1%, 0%, 21.5%, 52.5%)
CIE-LABlab(46.43, -25.32, 8.52)
CIE-LCHlch(46.43, 26.72, 161.39°)
OKLaboklab(52.92% -0.0703 0.0219)
OKLCHoklch(52.92% 0.074 162.7)
XYZxyz(11.0164, 15.5901, 13.2529)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40795F #79405A
analogous
#407943 #40795F #407779
triadic
#40795F #5F4079 #795F40
tetradic
#40795F #434079 #79405A #777940
square
#40795F #434079 #79405A #777940
split-complementary
#40795F #794077 #794340
monochromatic
#162920 #2B5140 #40795F #55A17E #7AB99C

Accessibility & contrast

On white

5.10
#40795F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#40795F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40795F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40795F#FFFFFF#000000##FFFFFF
##40795F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77725E
Deuteranopia (green-blind)
#6E6B61
Tritanopia (blue-blind)
#307972
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #40795f;
/* rgb */ color: rgb(64, 121, 95);
/* oklch */ color: oklch(52.9% 0.074 162.7);
Tailwind
colors: {
  custom: {
    50: '#78a08c',
    500: '#40795f',
    950: '#000000',
  },
}
SCSS
$custom: #40795f;
$custom-light: #78a08c;
$custom-dark: #000000;
JSON
{
  "hex": "#40795f",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 95
  },
  "hsl": {
    "h": 152.632,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.52918,
    "c": 0.07366,
    "h": 162.7
  },
  "luminance": 0.15591
}

Semantic roles & 50–950 ramp

primary
#40795F
secondary
#A47188
accent
#618FC7
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#090E0C
muted
#7B7E7D

Preview Lab

Preview with #40795F

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

Preview Lab → · Contrast checker → · Palette generator →

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