#783AAA#783AAA

#783AAA is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.4% C 0.174 H 306.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#783AAA
RGBrgb(120, 58, 170)
HSLhsl(273, 49%, 45%)
HSVhsv(273, 66%, 67%)
CMYKcmyk(29.4%, 65.9%, 0%, 33.3%)
CIE-LABlab(37.70, 47.52, -49.53)
CIE-LCHlch(37.70, 68.64, 313.82°)
OKLaboklab(48.37% 0.1033 -0.1403)
OKLCHoklch(48.37% 0.174 306.4)
XYZxyz(16.5129, 9.9216, 39.0676)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783AAA #6CAA3A
analogous
#403AAA #783AAA #AA3AA4
triadic
#783AAA #AA783A #3AAA78
tetradic
#783AAA #AA403A #6CAA3A #3AA4AA
square
#783AAA #AA403A #6CAA3A #3AA4AA
split-complementary
#783AAA #A4AA3A #3AAA40
monochromatic
#381B4F #582A7C #783AAA #965AC7 #B388D6

Accessibility & contrast

On white

7.04
#783AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#783AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783AAA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783AAA#FFFFFF#000000##FFFFFF
##783AAA1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#1F59A8
Tritanopia (blue-blind)
#70526D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #783aaa;
/* rgb */ color: rgb(120, 58, 170);
/* oklch */ color: oklch(48.4% 0.174 306.4);
Tailwind
colors: {
  custom: {
    50: '#a374c4',
    500: '#783aaa',
    950: '#000000',
  },
}
SCSS
$custom: #783aaa;
$custom-light: #a374c4;
$custom-dark: #000000;
JSON
{
  "hex": "#783aaa",
  "rgb": {
    "r": 120,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 273.214,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48365,
    "c": 0.17422,
    "h": 306.4
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#783AAA
secondary
#9CC17F
accent
#D94F8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #783AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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