#783F9A#783F9A

#783F9A is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.0% C 0.149 H 310.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#783F9A
RGBrgb(120, 63, 154)
HSLhsl(278, 42%, 43%)
HSVhsv(278, 59%, 60%)
CMYKcmyk(22.1%, 59.1%, 0%, 39.6%)
CIE-LABlab(37.63, 41.16, -40.04)
CIE-LCHlch(37.63, 57.42, 315.79°)
OKLaboklab(47.98% 0.0975 -0.1125)
OKLCHoklch(47.98% 0.149 310.9)
XYZxyz(15.3549, 9.8815, 31.6640)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783F9A #619A3F
analogous
#4A3F9A #783F9A #9A3F8F
triadic
#783F9A #9A783F #3F9A78
tetradic
#783F9A #9A4A3F #619A3F #3F8F9A
square
#783F9A #9A4A3F #619A3F #3F8F9A
split-complementary
#783F9A #8F9A3F #3F9A4A
monochromatic
#341B43 #562D6F #783F9A #975ABC #B386CD

Accessibility & contrast

On white

7.06
#783F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #783F9A
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783F9A#FFFFFF#000000##FFFFFF
##783F9A1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20569D
Deuteranopia (green-blind)
#375A98
Tritanopia (blue-blind)
#745066
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #783f9a;
/* rgb */ color: rgb(120, 63, 154);
/* oklch */ color: oklch(48.0% 0.149 310.9);
Tailwind
colors: {
  custom: {
    50: '#a277b8',
    500: '#783f9a',
    950: '#000000',
  },
}
SCSS
$custom: #783f9a;
$custom-light: #a277b8;
$custom-dark: #000000;
JSON
{
  "hex": "#783f9a",
  "rgb": {
    "r": 120,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 277.582,
    "s": 41.935,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47983,
    "c": 0.14887,
    "h": 310.9
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#783F9A
secondary
#93B87D
accent
#D25684
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #783F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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