#786BA2#786BA2

#786BA2 is a mid, moderate violet. Relative luminance 0.171; OKLCH L 56.2% C 0.085 H 294.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#786BA2
RGBrgb(120, 107, 162)
HSLhsl(254, 23%, 53%)
HSVhsv(254, 34%, 64%)
CMYKcmyk(25.9%, 34%, 0%, 36.5%)
CIE-LABlab(48.41, 17.40, -27.82)
CIE-LCHlch(48.41, 32.82, 302.02°)
OKLaboklab(56.2% 0.035 -0.0772)
OKLCHoklch(56.2% 0.085 294.4)
XYZxyz(19.5235, 17.1169, 36.4507)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BA2 #95A26B
analogous
#6B79A2 #786BA2 #946BA2
triadic
#786BA2 #A2786B #6BA278
tetradic
#786BA2 #A26B79 #95A26B #6BA294
square
#786BA2 #A26B79 #95A26B #6BA294
split-complementary
#786BA2 #A2946B #79A26B
monochromatic
#40395A #5B5080 #786BA2 #9A91BA #BDB6D1

Accessibility & contrast

On white

4.75
#786BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#786BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786BA2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BA2#FFFFFF#000000##FFFFFF
##786BA21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D73A4
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#6F747F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786ba2;
/* rgb */ color: rgb(120, 107, 162);
/* oklch */ color: oklch(56.2% 0.085 294.4);
Tailwind
colors: {
  custom: {
    50: '#a095bd',
    500: '#786ba2',
    950: '#000000',
  },
}
SCSS
$custom: #786ba2;
$custom-light: #a095bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ba2",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 162
  },
  "hsl": {
    "h": 254.182,
    "s": 22.822,
    "l": 52.745
  },
  "oklch": {
    "l": 0.562,
    "c": 0.08474,
    "h": 294.4
  },
  "luminance": 0.17117
}

Semantic roles & 50–950 ramp

primary
#786BA2
secondary
#BBC0A8
accent
#BF68AB
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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