#786FA2#786FA2

#786FA2 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.0% C 0.078 H 291.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786FA2
RGBrgb(120, 111, 162)
HSLhsl(251, 22%, 54%)
HSVhsv(251, 31%, 64%)
CMYKcmyk(25.9%, 31.5%, 0%, 36.5%)
CIE-LABlab(49.46, 14.99, -26.19)
CIE-LCHlch(49.46, 30.18, 299.79°)
OKLaboklab(57.01% 0.029 -0.0725)
OKLCHoklch(57.01% 0.078 291.8)
XYZxyz(19.9502, 17.9703, 36.5929)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA2 #99A26F
analogous
#6F7FA2 #786FA2 #916FA2
triadic
#786FA2 #A2786F #6FA278
tetradic
#786FA2 #A26F7F #99A26F #6FA291
square
#786FA2 #A26F7F #99A26F #6FA291
split-complementary
#786FA2 #A2916F #7FA26F
monochromatic
#413B5C #5B5381 #786FA2 #9B94BA #BEB9D2

Accessibility & contrast

On white

4.57
#786FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#786FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA2#FFFFFF#000000##000000
##786FA21.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6276A4
Deuteranopia (green-blind)
#6275A1
Tritanopia (blue-blind)
#6F7881
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa2;
/* rgb */ color: rgb(120, 111, 162);
/* oklch */ color: oklch(57.0% 0.078 291.8);
Tailwind
colors: {
  custom: {
    50: '#a098bd',
    500: '#786fa2',
    950: '#000000',
  },
}
SCSS
$custom: #786fa2;
$custom-light: #a098bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa2",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 162
  },
  "hsl": {
    "h": 250.588,
    "s": 21.519,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.07811,
    "h": 291.8
  },
  "luminance": 0.17971
}

Semantic roles & 50–950 ramp

primary
#786FA2
secondary
#BDC1AB
accent
#BE6AAF
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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