#786FA0#786FA0

#786FA0 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 56.9% C 0.075 H 292.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786FA0
RGBrgb(120, 111, 160)
HSLhsl(251, 21%, 53%)
HSVhsv(251, 31%, 63%)
CMYKcmyk(25%, 30.6%, 0%, 37.3%)
CIE-LABlab(49.37, 14.48, -25.15)
CIE-LCHlch(49.37, 29.02, 299.94°)
OKLaboklab(56.91% 0.0285 -0.0695)
OKLCHoklch(56.91% 0.075 292.3)
XYZxyz(19.7738, 17.8997, 35.6641)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA0 #97A06F
analogous
#6F7EA0 #786FA0 #906FA0
triadic
#786FA0 #A0786F #6FA078
tetradic
#786FA0 #A06F7E #97A06F #6FA090
square
#786FA0 #A06F7E #97A06F #6FA090
split-complementary
#786FA0 #A0906F #7EA06F
monochromatic
#413B5A #5B537E #786FA0 #9B94B8 #BDB9D1

Accessibility & contrast

On white

4.59
#786FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#786FA0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786FA0
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA0#FFFFFF#000000##FFFFFF
##786FA01.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6376A2
Deuteranopia (green-blind)
#63749F
Tritanopia (blue-blind)
#707780
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786fa0;
/* rgb */ color: rgb(120, 111, 160);
/* oklch */ color: oklch(56.9% 0.075 292.3);
Tailwind
colors: {
  custom: {
    50: '#a098bc',
    500: '#786fa0',
    950: '#000000',
  },
}
SCSS
$custom: #786fa0;
$custom-light: #a098bc;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa0",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 160
  },
  "hsl": {
    "h": 251.02,
    "s": 20.502,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.07514,
    "h": 292.3
  },
  "luminance": 0.179
}

Semantic roles & 50–950 ramp

primary
#786FA0
secondary
#BCC0AB
accent
#BD6BAE
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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