#786AB2#786AB2

#786AB2 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.8% C 0.110 H 291.4°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#786AB2
RGBrgb(120, 106, 178)
HSLhsl(252, 32%, 56%)
HSVhsv(252, 40%, 70%)
CMYKcmyk(32.6%, 40.4%, 0%, 30.2%)
CIE-LABlab(48.90, 22.20, -36.40)
CIE-LCHlch(48.90, 42.63, 301.38°)
OKLaboklab(56.83% 0.0401 -0.1019)
OKLCHoklch(56.83% 0.11 291.4)
XYZxyz(20.9336, 17.5151, 44.3887)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AB2 #A4B26A
analogous
#6A80B2 #786AB2 #9C6AB2
triadic
#786AB2 #B2786A #6AB278
tetradic
#786AB2 #B26A80 #A4B26A #6AB29C
square
#786AB2 #B26A80 #A4B26A #6AB29C
split-complementary
#786AB2 #B29C6A #80B26A
monochromatic
#41376B #5A4C93 #786AB2 #9D92C7 #C1BBDC

Accessibility & contrast

On white

4.66
#786AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#786AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786AB2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AB2#FFFFFF#000000##FFFFFF
##786AB21.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B5
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#6A7785
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ab2;
/* rgb */ color: rgb(120, 106, 178);
/* oklch */ color: oklch(56.8% 0.110 291.4);
Tailwind
colors: {
  custom: {
    50: '#a194c9',
    500: '#786ab2',
    950: '#000000',
  },
}
SCSS
$custom: #786ab2;
$custom-light: #a194c9;
$custom-dark: #000000;
JSON
{
  "hex": "#786ab2",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 178
  },
  "hsl": {
    "h": 251.667,
    "s": 31.858,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56826,
    "c": 0.10953,
    "h": 291.4
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#786AB2
secondary
#C5CBAD
accent
#C860B4
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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