#786BB0#786BB0

#786BB0 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.9% C 0.105 H 291.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#786BB0
RGBrgb(120, 107, 176)
HSLhsl(251, 30%, 55%)
HSVhsv(251, 39%, 69%)
CMYKcmyk(31.8%, 39.2%, 0%, 31%)
CIE-LABlab(49.06, 21.06, -34.99)
CIE-LCHlch(49.06, 40.84, 301.05°)
OKLaboklab(56.91% 0.0382 -0.0979)
OKLCHoklch(56.91% 0.105 291.3)
XYZxyz(20.8379, 17.6426, 43.3734)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB0 #A3B06B
analogous
#6B81B0 #786BB0 #9A6BB0
triadic
#786BB0 #B0786B #6BB078
tetradic
#786BB0 #B06B81 #A3B06B #6BB09A
square
#786BB0 #B06B81 #A3B06B #6BB09A
split-complementary
#786BB0 #B09A6B #81B06B
monochromatic
#413869 #5A4D91 #786BB0 #9C93C5 #C1BBDB

Accessibility & contrast

On white

4.64
#786BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#786BB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786BB0
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB0#FFFFFF#000000##FFFFFF
##786BB01.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5776B3
Deuteranopia (green-blind)
#5873AE
Tritanopia (blue-blind)
#6B7885
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb0;
/* rgb */ color: rgb(120, 107, 176);
/* oklch */ color: oklch(56.9% 0.105 291.3);
Tailwind
colors: {
  custom: {
    50: '#a195c8',
    500: '#786bb0',
    950: '#000000',
  },
}
SCSS
$custom: #786bb0;
$custom-light: #a195c8;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb0",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 176
  },
  "hsl": {
    "h": 251.304,
    "s": 30.396,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.10507,
    "h": 291.3
  },
  "luminance": 0.17643
}

Semantic roles & 50–950 ramp

primary
#786BB0
secondary
#C4CAAD
accent
#C761B4
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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