#783F9C#783F9C

#783F9C is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.151 H 310.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#783F9C
RGBrgb(120, 63, 156)
HSLhsl(277, 42%, 43%)
HSVhsv(277, 60%, 61%)
CMYKcmyk(23.1%, 59.6%, 0%, 38.8%)
CIE-LABlab(37.75, 41.62, -41.05)
CIE-LCHlch(37.75, 58.46, 315.39°)
OKLaboklab(48.11% 0.0976 -0.1154)
OKLCHoklch(48.11% 0.151 310.2)
XYZxyz(15.5228, 9.9487, 32.5486)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783F9C #639C3F
analogous
#493F9C #783F9C #9C3F91
triadic
#783F9C #9C783F #3F9C78
tetradic
#783F9C #9C493F #639C3F #3F919C
square
#783F9C #9C493F #639C3F #3F919C
split-complementary
#783F9C #919C3F #3F9C49
monochromatic
#351C45 #562D70 #783F9C #975BBD #B387CE

Accessibility & contrast

On white

7.02
#783F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#783F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783F9C
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783F9C#FFFFFF#000000##FFFFFF
##783F9C1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E569F
Deuteranopia (green-blind)
#355A9A
Tritanopia (blue-blind)
#735067
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #783f9c;
/* rgb */ color: rgb(120, 63, 156);
/* oklch */ color: oklch(48.1% 0.151 310.2);
Tailwind
colors: {
  custom: {
    50: '#a277ba',
    500: '#783f9c',
    950: '#000000',
  },
}
SCSS
$custom: #783f9c;
$custom-light: #a277ba;
$custom-dark: #000000;
JSON
{
  "hex": "#783f9c",
  "rgb": {
    "r": 120,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 276.774,
    "s": 42.466,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48111,
    "c": 0.15114,
    "h": 310.2
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#783F9C
secondary
#95B97E
accent
#D25686
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #783F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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