#783F9D#783F9D

#783F9D is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.2% C 0.152 H 309.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#783F9D
RGBrgb(120, 63, 157)
HSLhsl(276, 43%, 43%)
HSVhsv(276, 60%, 62%)
CMYKcmyk(23.6%, 59.9%, 0%, 38.4%)
CIE-LABlab(37.81, 41.86, -41.56)
CIE-LCHlch(37.81, 58.99, 315.20°)
OKLaboklab(48.18% 0.0976 -0.1169)
OKLCHoklch(48.18% 0.152 309.8)
XYZxyz(15.6079, 9.9827, 32.9964)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783F9D #649D3F
analogous
#493F9D #783F9D #9D3F93
triadic
#783F9D #9D783F #3F9D78
tetradic
#783F9D #9D493F #649D3F #3F939D
square
#783F9D #9D493F #649D3F #3F939D
split-complementary
#783F9D #939D3F #3F9D49
monochromatic
#351C46 #572D71 #783F9D #975CBD #B387CF

Accessibility & contrast

On white

7.01
#783F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#783F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #783F9D
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783F9D#FFFFFF#000000##FFFFFF
##783F9D1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C56A0
Deuteranopia (green-blind)
#345A9B
Tritanopia (blue-blind)
#735168
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #783f9d;
/* rgb */ color: rgb(120, 63, 157);
/* oklch */ color: oklch(48.2% 0.152 309.8);
Tailwind
colors: {
  custom: {
    50: '#a277ba',
    500: '#783f9d',
    950: '#000000',
  },
}
SCSS
$custom: #783f9d;
$custom-light: #a277ba;
$custom-dark: #000000;
JSON
{
  "hex": "#783f9d",
  "rgb": {
    "r": 120,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 276.383,
    "s": 42.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48175,
    "c": 0.15228,
    "h": 309.8
  },
  "luminance": 0.09982
}

Semantic roles & 50–950 ramp

primary
#783F9D
secondary
#96BA7E
accent
#D35587
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #783F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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