#786187#786187

#786187 is a mid, moderate violet. Relative luminance 0.143; OKLCH L 52.9% C 0.064 H 311.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#786187
RGBrgb(120, 97, 135)
HSLhsl(276, 16%, 45%)
HSVhsv(276, 28%, 53%)
CMYKcmyk(11.1%, 28.1%, 0%, 47.1%)
CIE-LABlab(44.65, 16.90, -17.59)
CIE-LCHlch(44.65, 24.40, 313.85°)
OKLaboklab(52.94% 0.0427 -0.048)
OKLCHoklch(52.94% 0.064 311.7)
XYZxyz(16.3929, 14.2919, 24.8120)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786187 #708761
analogous
#656187 #786187 #876183
triadic
#786187 #877861 #618778
tetradic
#786187 #876561 #708761 #618387
square
#786187 #876561 #708761 #618387
split-complementary
#786187 #838761 #618765
monochromatic
#392E40 #584763 #786187 #9681A4 #B4A4BE

Accessibility & contrast

On white

5.44
#786187 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#786187 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786187
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786187#FFFFFF#000000##FFFFFF
##7861871.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6889
Deuteranopia (green-blind)
#606A86
Tritanopia (blue-blind)
#77666E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786187;
/* rgb */ color: rgb(120, 97, 135);
/* oklch */ color: oklch(52.9% 0.064 311.7);
Tailwind
colors: {
  custom: {
    50: '#9f8eaa',
    500: '#786187',
    950: '#000000',
  },
}
SCSS
$custom: #786187;
$custom-light: #9f8eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#786187",
  "rgb": {
    "r": 120,
    "g": 97,
    "b": 135
  },
  "hsl": {
    "h": 276.316,
    "s": 16.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.52944,
    "c": 0.06427,
    "h": 311.7
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#786187
secondary
#A0AD97
accent
#B96F8C
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C10
muted
#7E7D7F

Preview Lab

Preview with #786187

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

Preview Lab → · Contrast checker → · Palette generator →

#786187 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva