#783EA6#783EA6

#783EA6 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.164 H 307.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#783EA6
RGBrgb(120, 62, 166)
HSLhsl(273, 46%, 45%)
HSVhsv(273, 63%, 65%)
CMYKcmyk(27.7%, 62.7%, 0%, 34.9%)
CIE-LABlab(38.18, 44.52, -46.36)
CIE-LCHlch(38.18, 64.28, 313.84°)
OKLaboklab(48.63% 0.0987 -0.131)
OKLCHoklch(48.63% 0.164 307)
XYZxyz(16.3498, 10.1917, 37.1749)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783EA6 #6CA63E
analogous
#443EA6 #783EA6 #A63EA0
triadic
#783EA6 #A6783E #3EA678
tetradic
#783EA6 #A6443E #6CA63E #3EA0A6
square
#783EA6 #A6443E #6CA63E #3EA0A6
split-complementary
#783EA6 #A0A63E #3EA644
monochromatic
#381D4D #582D79 #783EA6 #965EC3 #B38BD4

Accessibility & contrast

On white

6.91
#783EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#783EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #783EA6
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783EA6#FFFFFF#000000##FFFFFF
##783EA61.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0458A9
Deuteranopia (green-blind)
#2A5AA4
Tritanopia (blue-blind)
#71536C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #783ea6;
/* rgb */ color: rgb(120, 62, 166);
/* oklch */ color: oklch(48.6% 0.164 307.0);
Tailwind
colors: {
  custom: {
    50: '#a277c1',
    500: '#783ea6',
    950: '#000000',
  },
}
SCSS
$custom: #783ea6;
$custom-light: #a277c1;
$custom-dark: #000000;
JSON
{
  "hex": "#783ea6",
  "rgb": {
    "r": 120,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 273.462,
    "s": 45.614,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48629,
    "c": 0.16404,
    "h": 307
  },
  "luminance": 0.10191
}

Semantic roles & 50–950 ramp

primary
#783EA6
secondary
#9CBE82
accent
#D5538C
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #783EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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