#786EA1#786EA1

#786EA1 is a mid, moderate violet. Relative luminance 0.177; OKLCH L 56.8% C 0.078 H 292.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#786EA1
RGBrgb(120, 110, 161)
HSLhsl(252, 21%, 53%)
HSVhsv(252, 32%, 63%)
CMYKcmyk(25.5%, 31.7%, 0%, 36.9%)
CIE-LABlab(49.15, 15.34, -26.08)
CIE-LCHlch(49.15, 30.26, 300.46°)
OKLaboklab(56.76% 0.0302 -0.0722)
OKLCHoklch(56.76% 0.078 292.7)
XYZxyz(19.7531, 17.7179, 36.0905)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EA1 #97A16E
analogous
#6E7DA1 #786EA1 #916EA1
triadic
#786EA1 #A1786E #6EA178
tetradic
#786EA1 #A16E7D #97A16E #6EA191
square
#786EA1 #A16E7D #97A16E #6EA191
split-complementary
#786EA1 #A1916E #7DA16E
monochromatic
#413A5A #5B537F #786EA1 #9B93B9 #BDB8D1

Accessibility & contrast

On white

4.62
#786EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786EA1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EA1#FFFFFF#000000##FFFFFF
##786EA11.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6175A3
Deuteranopia (green-blind)
#6274A0
Tritanopia (blue-blind)
#6F7780
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786ea1;
/* rgb */ color: rgb(120, 110, 161);
/* oklch */ color: oklch(56.8% 0.078 292.7);
Tailwind
colors: {
  custom: {
    50: '#a097bd',
    500: '#786ea1',
    950: '#000000',
  },
}
SCSS
$custom: #786ea1;
$custom-light: #a097bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ea1",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 161
  },
  "hsl": {
    "h": 251.765,
    "s": 21.339,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56758,
    "c": 0.07828,
    "h": 292.7
  },
  "luminance": 0.17718
}

Semantic roles & 50–950 ramp

primary
#786EA1
secondary
#BCC0AA
accent
#BE6AAD
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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