#786BB1#786BB1

#786BB1 is a mid, moderate violet. Relative luminance 0.177; OKLCH L 57.0% C 0.106 H 291.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#786BB1
RGBrgb(120, 107, 177)
HSLhsl(251, 31%, 56%)
HSVhsv(251, 40%, 69%)
CMYKcmyk(32.2%, 39.5%, 0%, 30.6%)
CIE-LABlab(49.11, 21.33, -35.49)
CIE-LCHlch(49.11, 41.41, 301.00°)
OKLaboklab(56.97% 0.0384 -0.0993)
OKLCHoklch(56.97% 0.107 291.2)
XYZxyz(20.9372, 17.6824, 43.8964)
Luminance0.1768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB1 #A4B16B
analogous
#6B81B1 #786BB1 #9B6BB1
triadic
#786BB1 #B1786B #6BB178
tetradic
#786BB1 #B16B81 #A4B16B #6BB19B
square
#786BB1 #B16B81 #A4B16B #6BB19B
split-complementary
#786BB1 #B19B6B #81B16B
monochromatic
#41386A #5A4D92 #786BB1 #9D93C6 #C1BBDB

Accessibility & contrast

On white

4.63
#786BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#786BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786BB1
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB1#FFFFFF#000000##FFFFFF
##786BB11.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5676B4
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#6B7885
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786bb1;
/* rgb */ color: rgb(120, 107, 177);
/* oklch */ color: oklch(57.0% 0.106 291.2);
Tailwind
colors: {
  custom: {
    50: '#a195c8',
    500: '#786bb1',
    950: '#000000',
  },
}
SCSS
$custom: #786bb1;
$custom-light: #a195c8;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb1",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 177
  },
  "hsl": {
    "h": 251.143,
    "s": 30.973,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56966,
    "c": 0.1065,
    "h": 291.2
  },
  "luminance": 0.17683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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