#783C9D#783C9D

#783C9D is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.157 H 310.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#783C9D
RGBrgb(120, 60, 157)
HSLhsl(277, 45%, 43%)
HSVhsv(277, 62%, 62%)
CMYKcmyk(23.6%, 61.8%, 0%, 38.4%)
CIE-LABlab(37.22, 43.44, -42.50)
CIE-LCHlch(37.22, 60.77, 315.63°)
OKLaboklab(47.75% 0.1015 -0.1197)
OKLCHoklch(47.75% 0.157 310.3)
XYZxyz(15.4462, 9.6594, 32.9425)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783C9D #619D3C
analogous
#473C9D #783C9D #9D3C92
triadic
#783C9D #9D783C #3C9D78
tetradic
#783C9D #9D473C #619D3C #3C929D
square
#783C9D #9D473C #619D3C #3C929D
split-complementary
#783C9D #929D3C #3C9D47
monochromatic
#341A44 #562B71 #783C9D #9757BF #B384D0

Accessibility & contrast

On white

7.16
#783C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#783C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783C9D
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783C9D#FFFFFF#000000##FFFFFF
##783C9D1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1455A0
Deuteranopia (green-blind)
#31599B
Tritanopia (blue-blind)
#734E67
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #783c9d;
/* rgb */ color: rgb(120, 60, 157);
/* oklch */ color: oklch(47.7% 0.157 310.3);
Tailwind
colors: {
  custom: {
    50: '#a275ba',
    500: '#783c9d',
    950: '#000000',
  },
}
SCSS
$custom: #783c9d;
$custom-light: #a275ba;
$custom-dark: #000000;
JSON
{
  "hex": "#783c9d",
  "rgb": {
    "r": 120,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 277.113,
    "s": 44.7,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47748,
    "c": 0.1569,
    "h": 310.3
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#783C9D
secondary
#93BA7B
accent
#D45385
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #783C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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