#786F97#786F97

#786F97 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.5% C 0.062 H 294.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#786F97
RGBrgb(120, 111, 151)
HSLhsl(254, 16%, 51%)
HSVhsv(254, 26%, 59%)
CMYKcmyk(20.5%, 26.5%, 0%, 40.8%)
CIE-LABlab(49.00, 12.25, -20.44)
CIE-LCHlch(49.00, 23.82, 300.93°)
OKLaboklab(56.51% 0.0258 -0.0561)
OKLCHoklch(56.51% 0.062 294.7)
XYZxyz(19.0148, 17.5961, 31.6668)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F97 #8E976F
analogous
#6F7A97 #786F97 #8C6F97
triadic
#786F97 #97786F #6F9778
tetradic
#786F97 #976F7A #8E976F #6F978C
square
#786F97 #976F7A #8E976F #6F978C
split-complementary
#786F97 #978C6F #7A976F
monochromatic
#403B51 #5B5475 #786F97 #9993B1 #BBB6CA

Accessibility & contrast

On white

4.65
#786F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#786F97 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786F97
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F97#FFFFFF#000000##FFFFFF
##786F971.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#667599
Deuteranopia (green-blind)
#677496
Tritanopia (blue-blind)
#72757D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786f97;
/* rgb */ color: rgb(120, 111, 151);
/* oklch */ color: oklch(56.5% 0.062 294.7);
Tailwind
colors: {
  custom: {
    50: '#9f98b5',
    500: '#786f97',
    950: '#000000',
  },
}
SCSS
$custom: #786f97;
$custom-light: #9f98b5;
$custom-dark: #000000;
JSON
{
  "hex": "#786f97",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 151
  },
  "hsl": {
    "h": 253.5,
    "s": 16.129,
    "l": 51.373
  },
  "oklch": {
    "l": 0.56505,
    "c": 0.06175,
    "h": 294.7
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#786F97
secondary
#B6BAA8
accent
#B96FA8
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0D11
muted
#7E7E80

Preview Lab

Preview with #786F97

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

Preview Lab → · Contrast checker → · Palette generator →

#786F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva