#42787F#42787F

#42787F is a mid, muted teal. Relative luminance 0.161; OKLCH L 53.8% C 0.058 H 206.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#42787F
RGBrgb(66, 120, 127)
HSLhsl(187, 32%, 38%)
HSVhsv(187, 48%, 50%)
CMYKcmyk(48%, 5.5%, 0%, 50.2%)
CIE-LABlab(47.13, -15.90, -9.41)
CIE-LCHlch(47.13, 18.47, 210.63°)
OKLaboklab(53.82% -0.0523 -0.0259)
OKLCHoklch(53.82% 0.058 206.4)
XYZxyz(12.7925, 16.1225, 22.5124)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42787F #7F4942
analogous
#427F67 #42787F #42597F
triadic
#42787F #7F4278 #787F42
tetradic
#42787F #67427F #7F4942 #597F42
square
#42787F #67427F #7F4942 #597F42
split-complementary
#42787F #7F4259 #7F6742
monochromatic
#182C2E #2D5257 #42787F #579EA7 #7FB5BC

Accessibility & contrast

On white

4.97
#42787F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#42787F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42787F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42787F#FFFFFF#000000##FFFFFF
##42787F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70747F
Deuteranopia (green-blind)
#666D7F
Tritanopia (blue-blind)
#227C7A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #42787f;
/* rgb */ color: rgb(66, 120, 127);
/* oklch */ color: oklch(53.8% 0.058 206.4);
Tailwind
colors: {
  custom: {
    50: '#7b9fa4',
    500: '#42787f',
    950: '#000000',
  },
}
SCSS
$custom: #42787f;
$custom-light: #7b9fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42787f",
  "rgb": {
    "r": 66,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 186.885,
    "s": 31.606,
    "l": 37.843
  },
  "oklch": {
    "l": 0.53817,
    "c": 0.05834,
    "h": 206.4
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#42787F
secondary
#A77B75
accent
#6C60C8
background
#F7F9FA
surface
#EEF2F4
border
#C9CCCE
text
#0A0E0F
muted
#7C7E7F

Preview Lab

Preview with #42787F

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

Preview Lab → · Contrast checker → · Palette generator →

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