#786AA3#786AA3

#786AA3 is a mid, moderate violet. Relative luminance 0.169; OKLCH L 56.0% C 0.088 H 294.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#786AA3
RGBrgb(120, 106, 163)
HSLhsl(255, 24%, 53%)
HSVhsv(255, 35%, 64%)
CMYKcmyk(26.4%, 35%, 0%, 36.1%)
CIE-LABlab(48.19, 18.26, -28.75)
CIE-LCHlch(48.19, 34.05, 302.42°)
OKLaboklab(56.05% 0.0367 -0.0798)
OKLCHoklch(56.05% 0.088 294.7)
XYZxyz(19.5090, 16.9452, 36.8862)
Luminance0.1694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AA3 #95A36A
analogous
#6A78A3 #786AA3 #946AA3
triadic
#786AA3 #A3786A #6AA378
tetradic
#786AA3 #A36A78 #95A36A #6AA394
square
#786AA3 #A36A78 #95A36A #6AA394
split-complementary
#786AA3 #A3946A #78A36A
monochromatic
#40385B #5B4F80 #786AA3 #9A90BA #BDB6D2

Accessibility & contrast

On white

4.78
#786AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#786AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AA3
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AA3#FFFFFF#000000##FFFFFF
##786AA31.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B73A5
Deuteranopia (green-blind)
#5D72A1
Tritanopia (blue-blind)
#6F747F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786aa3;
/* rgb */ color: rgb(120, 106, 163);
/* oklch */ color: oklch(56.0% 0.088 294.7);
Tailwind
colors: {
  custom: {
    50: '#a094be',
    500: '#786aa3',
    950: '#000000',
  },
}
SCSS
$custom: #786aa3;
$custom-light: #a094be;
$custom-dark: #000000;
JSON
{
  "hex": "#786aa3",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 163
  },
  "hsl": {
    "h": 254.737,
    "s": 23.651,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5605,
    "c": 0.08787,
    "h": 294.7
  },
  "luminance": 0.16945
}

Semantic roles & 50–950 ramp

primary
#786AA3
secondary
#BBC1A8
accent
#C068AA
background
#F9F9FB
surface
#F2F1F7
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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