#786CA2#786CA2

#786CA2 is a mid, moderate violet. Relative luminance 0.173; OKLCH L 56.4% C 0.083 H 293.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#786CA2
RGBrgb(120, 108, 162)
HSLhsl(253, 23%, 53%)
HSVhsv(253, 33%, 64%)
CMYKcmyk(25.9%, 33.3%, 0%, 36.5%)
CIE-LABlab(48.67, 16.80, -27.42)
CIE-LCHlch(48.67, 32.15, 301.49°)
OKLaboklab(56.4% 0.0335 -0.076)
OKLCHoklch(56.4% 0.083 293.8)
XYZxyz(19.6283, 17.3266, 36.4857)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA2 #96A26C
analogous
#6C7BA2 #786CA2 #936CA2
triadic
#786CA2 #A2786C #6CA278
tetradic
#786CA2 #A26C7B #96A26C #6CA293
square
#786CA2 #A26C7B #96A26C #6CA293
split-complementary
#786CA2 #A2936C #7BA26C
monochromatic
#41395A #5B5180 #786CA2 #9A91BA #BDB7D1

Accessibility & contrast

On white

4.70
#786CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#786CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786CA2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA2#FFFFFF#000000##FFFFFF
##786CA21.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A4
Deuteranopia (green-blind)
#5F73A1
Tritanopia (blue-blind)
#6F7580
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #786ca2;
/* rgb */ color: rgb(120, 108, 162);
/* oklch */ color: oklch(56.4% 0.083 293.8);
Tailwind
colors: {
  custom: {
    50: '#a096bd',
    500: '#786ca2',
    950: '#000000',
  },
}
SCSS
$custom: #786ca2;
$custom-light: #a096bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca2",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 162
  },
  "hsl": {
    "h": 253.333,
    "s": 22.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.08307,
    "h": 293.8
  },
  "luminance": 0.17327
}

Semantic roles & 50–950 ramp

primary
#786CA2
secondary
#BBC1A9
accent
#BF69AC
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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