#783C9B#783C9B

#783C9B is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.155 H 311.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#783C9B
RGBrgb(120, 60, 155)
HSLhsl(278, 44%, 42%)
HSVhsv(278, 61%, 61%)
CMYKcmyk(22.6%, 61.3%, 0%, 39.2%)
CIE-LABlab(37.10, 42.98, -41.49)
CIE-LCHlch(37.10, 59.74, 316.01°)
OKLaboklab(47.62% 0.1015 -0.1167)
OKLCHoklch(47.62% 0.155 311)
XYZxyz(15.2769, 9.5917, 32.0506)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783C9B #5F9B3C
analogous
#493C9B #783C9B #9B3C8F
triadic
#783C9B #9B783C #3C9B78
tetradic
#783C9B #9B493C #5F9B3C #3C8F9B
square
#783C9B #9B493C #5F9B3C #3C8F9B
split-complementary
#783C9B #8F9B3C #3C9B49
monochromatic
#341A43 #562B6F #783C9B #9856BE #B383CF

Accessibility & contrast

On white

7.20
#783C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#783C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783C9B
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783C9B#FFFFFF#000000##FFFFFF
##783C9B1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18549E
Deuteranopia (green-blind)
#335899
Tritanopia (blue-blind)
#744E66
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #783c9b;
/* rgb */ color: rgb(120, 60, 155);
/* oklch */ color: oklch(47.6% 0.155 311.0);
Tailwind
colors: {
  custom: {
    50: '#a275b9',
    500: '#783c9b',
    950: '#000000',
  },
}
SCSS
$custom: #783c9b;
$custom-light: #a275b9;
$custom-dark: #000000;
JSON
{
  "hex": "#783c9b",
  "rgb": {
    "r": 120,
    "g": 60,
    "b": 155
  },
  "hsl": {
    "h": 277.895,
    "s": 44.186,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47617,
    "c": 0.15466,
    "h": 311
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#783C9B
secondary
#91B97A
accent
#D45483
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #783C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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