#783BA7#783BA7

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

Color values

HEX#783BA7
RGBrgb(120, 59, 167)
HSLhsl(274, 48%, 44%)
HSVhsv(274, 65%, 65%)
CMYKcmyk(28.1%, 64.7%, 0%, 34.5%)
CIE-LABlab(37.68, 46.31, -47.77)
CIE-LCHlch(37.68, 66.53, 314.11°)
OKLaboklab(48.29% 0.1024 -0.1351)
OKLCHoklch(48.29% 0.17 307.1)
XYZxyz(16.2833, 9.9112, 37.6070)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783BA7 #6AA73B
analogous
#423BA7 #783BA7 #A73BA0
triadic
#783BA7 #A7783B #3BA778
tetradic
#783BA7 #A7423B #6AA73B #3BA0A7
square
#783BA7 #A7423B #6AA73B #3BA0A7
split-complementary
#783BA7 #A0A73B #3BA742
monochromatic
#371B4D #582B7A #783BA7 #975AC5 #B388D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##783BA7#FFFFFF#000000##FFFFFF
##783BA71.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)
#0057AA
Deuteranopia (green-blind)
#2559A5
Tritanopia (blue-blind)
#70516C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #783ba7;
/* rgb */ color: rgb(120, 59, 167);
/* oklch */ color: oklch(48.3% 0.170 307.1);
Tailwind
colors: {
  custom: {
    50: '#a375c2',
    500: '#783ba7',
    950: '#000000',
  },
}
SCSS
$custom: #783ba7;
$custom-light: #a375c2;
$custom-dark: #000000;
JSON
{
  "hex": "#783ba7",
  "rgb": {
    "r": 120,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 273.889,
    "s": 47.788,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.16951,
    "h": 307.1
  },
  "luminance": 0.09911
}

Semantic roles & 50–950 ramp

primary
#783BA7
secondary
#9BBF7F
accent
#D7508B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #783BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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