#786EA6#786EA6

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

Color values

HEX#786EA6
RGBrgb(120, 110, 166)
HSLhsl(251, 24%, 54%)
HSVhsv(251, 34%, 65%)
CMYKcmyk(27.7%, 33.7%, 0%, 34.9%)
CIE-LABlab(49.37, 16.62, -28.67)
CIE-LCHlch(49.37, 33.14, 300.11°)
OKLaboklab(57% 0.0316 -0.0796)
OKLCHoklch(57% 0.086 291.6)
XYZxyz(20.2029, 17.8978, 38.4592)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EA6 #9CA66E
analogous
#6E80A6 #786EA6 #946EA6
triadic
#786EA6 #A6786E #6EA678
tetradic
#786EA6 #A66E80 #9CA66E #6EA694
square
#786EA6 #A66E80 #9CA66E #6EA694
split-complementary
#786EA6 #A6946E #80A66E
monochromatic
#413A5F #5B5285 #786EA6 #9B94BD #BFBAD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786EA6#FFFFFF#000000##FFFFFF
##786EA61.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)
#5F76A8
Deuteranopia (green-blind)
#6074A5
Tritanopia (blue-blind)
#6E7882
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786ea6;
/* rgb */ color: rgb(120, 110, 166);
/* oklch */ color: oklch(57.0% 0.086 291.6);
Tailwind
colors: {
  custom: {
    50: '#a097c0',
    500: '#786ea6',
    950: '#000000',
  },
}
SCSS
$custom: #786ea6;
$custom-light: #a097c0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ea6",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 166
  },
  "hsl": {
    "h": 250.714,
    "s": 23.932,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56999,
    "c": 0.08564,
    "h": 291.6
  },
  "luminance": 0.17898
}

Semantic roles & 50–950 ramp

primary
#786EA6
secondary
#C0C4AC
accent
#C067B0
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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