#783EA7#783EA7

#783EA7 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.165 H 306.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#783EA7
RGBrgb(120, 62, 167)
HSLhsl(273, 46%, 45%)
HSVhsv(273, 63%, 65%)
CMYKcmyk(28.1%, 62.9%, 0%, 34.5%)
CIE-LABlab(38.25, 44.76, -46.86)
CIE-LCHlch(38.25, 64.80, 313.69°)
OKLaboklab(48.7% 0.0987 -0.1324)
OKLCHoklch(48.7% 0.165 306.7)
XYZxyz(16.4419, 10.2285, 37.6598)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783EA7 #6DA73E
analogous
#433EA7 #783EA7 #A73EA2
triadic
#783EA7 #A7783E #3EA778
tetradic
#783EA7 #A7433E #6DA73E #3EA2A7
square
#783EA7 #A7433E #6DA73E #3EA2A7
split-complementary
#783EA7 #A2A73E #3EA743
monochromatic
#381D4E #582D7A #783EA7 #965FC3 #B48BD4

Accessibility & contrast

On white

6.90
#783EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#783EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #783EA7
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783EA7#FFFFFF#000000##FFFFFF
##783EA71.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#295AA5
Tritanopia (blue-blind)
#70536D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #783ea7;
/* rgb */ color: rgb(120, 62, 167);
/* oklch */ color: oklch(48.7% 0.165 306.7);
Tailwind
colors: {
  custom: {
    50: '#a277c2',
    500: '#783ea7',
    950: '#000000',
  },
}
SCSS
$custom: #783ea7;
$custom-light: #a277c2;
$custom-dark: #000000;
JSON
{
  "hex": "#783ea7",
  "rgb": {
    "r": 120,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 273.143,
    "s": 45.852,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48697,
    "c": 0.16517,
    "h": 306.7
  },
  "luminance": 0.10228
}

Semantic roles & 50–950 ramp

primary
#783EA7
secondary
#9DBF82
accent
#D6528D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #783EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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