#51787F#51787F

#51787F is a mid, muted teal. Relative luminance 0.167; OKLCH L 54.6% C 0.045 H 209.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#51787F
RGBrgb(81, 120, 127)
HSLhsl(189, 22%, 41%)
HSVhsv(189, 36%, 50%)
CMYKcmyk(36.2%, 5.5%, 0%, 50.2%)
CIE-LABlab(47.90, -11.74, -8.19)
CIE-LCHlch(47.90, 14.32, 214.89°)
OKLaboklab(54.63% -0.0389 -0.0224)
OKLCHoklch(54.63% 0.045 209.9)
XYZxyz(13.9393, 16.7137, 22.5661)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51787F #7F5851
analogous
#517F6F #51787F #51617F
triadic
#51787F #7F5178 #787F51
tetradic
#51787F #6F517F #7F5851 #617F51
square
#51787F #6F517F #7F5851 #617F51
split-complementary
#51787F #7F5161 #7F6F51
monochromatic
#213134 #39555A #51787F #6C99A1 #91B3B9

Accessibility & contrast

On white

4.84
#51787F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#51787F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51787F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51787F#FFFFFF#000000##FFFFFF
##51787F1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72757F
Deuteranopia (green-blind)
#6A6F7F
Tritanopia (blue-blind)
#407B7A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #51787f;
/* rgb */ color: rgb(81, 120, 127);
/* oklch */ color: oklch(54.6% 0.045 209.9);
Tailwind
colors: {
  custom: {
    50: '#849fa4',
    500: '#51787f',
    950: '#000000',
  },
}
SCSS
$custom: #51787f;
$custom-light: #849fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#51787f",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 127
  },
  "hsl": {
    "h": 189.13,
    "s": 22.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54633,
    "c": 0.04495,
    "h": 209.9
  },
  "luminance": 0.16715
}

Semantic roles & 50–950 ramp

primary
#51787F
secondary
#A68B86
accent
#7669BF
background
#F8F9FA
surface
#EFF2F4
border
#CACCCE
text
#0B0E0F
muted
#7C7E7F

Preview Lab

Preview with #51787F

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

Preview Lab → · Contrast checker → · Palette generator →

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