#786186#786186

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

Color values

HEX#786186
RGBrgb(120, 97, 134)
HSLhsl(277, 16%, 45%)
HSVhsv(277, 28%, 53%)
CMYKcmyk(10.4%, 27.6%, 0%, 47.5%)
CIE-LABlab(44.61, 16.68, -17.05)
CIE-LCHlch(44.61, 23.85, 314.36°)
OKLaboklab(52.9% 0.0424 -0.0465)
OKLCHoklch(52.9% 0.063 312.4)
XYZxyz(16.3228, 14.2639, 24.4430)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786186 #6F8661
analogous
#656186 #786186 #866181
triadic
#786186 #867861 #618678
tetradic
#786186 #866561 #6F8661 #618186
square
#786186 #866561 #6F8661 #618186
split-complementary
#786186 #818661 #618665
monochromatic
#382E3F #584762 #786186 #9681A4 #B4A4BD

Accessibility & contrast

On white

5.45
#786186 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#786186 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786186
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786186#FFFFFF#000000##FFFFFF
##7861861.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6888
Deuteranopia (green-blind)
#606A85
Tritanopia (blue-blind)
#77666E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #786186;
/* rgb */ color: rgb(120, 97, 134);
/* oklch */ color: oklch(52.9% 0.063 312.4);
Tailwind
colors: {
  custom: {
    50: '#9f8ea9',
    500: '#786186',
    950: '#000000',
  },
}
SCSS
$custom: #786186;
$custom-light: #9f8ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#786186",
  "rgb": {
    "r": 120,
    "g": 97,
    "b": 134
  },
  "hsl": {
    "h": 277.297,
    "s": 16.017,
    "l": 45.294
  },
  "oklch": {
    "l": 0.529,
    "c": 0.06292,
    "h": 312.4
  },
  "luminance": 0.14264
}

Semantic roles & 50–950 ramp

primary
#786186
secondary
#9FAC97
accent
#B96F8B
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C10
muted
#7E7D7F

Preview Lab

Preview with #786186

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

Preview Lab → · Contrast checker → · Palette generator →

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