#782CA1#782CA1

#782CA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.183 H 310.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#782CA1
RGBrgb(120, 44, 161)
HSLhsl(279, 57%, 40%)
HSVhsv(279, 73%, 63%)
CMYKcmyk(25.5%, 72.7%, 0%, 36.9%)
CIE-LABlab(34.74, 51.97, -48.91)
CIE-LCHlch(34.74, 71.37, 316.74°)
OKLaboklab(46.05% 0.1198 -0.1384)
OKLCHoklch(46.05% 0.183 310.9)
XYZxyz(15.0782, 8.3680, 34.5322)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA1 #55A12C
analogous
#3D2CA1 #782CA1 #A12C90
triadic
#782CA1 #A1782C #2CA178
tetradic
#782CA1 #A13D2C #55A12C #2C90A1
square
#782CA1 #A13D2C #55A12C #2C90A1
split-complementary
#782CA1 #90A12C #2CA13D
monochromatic
#301241 #541F71 #782CA1 #9A40CB #B370D8

Accessibility & contrast

On white

7.85
#782CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#782CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA1
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA1#FFFFFF#000000##FFFFFF
##782CA11.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#18539E
Tritanopia (blue-blind)
#734664
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ca1;
/* rgb */ color: rgb(120, 44, 161);
/* oklch */ color: oklch(46.0% 0.183 310.9);
Tailwind
colors: {
  custom: {
    50: '#a36cbd',
    500: '#782ca1',
    950: '#000000',
  },
}
SCSS
$custom: #782ca1;
$custom-light: #a36cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca1",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 278.974,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46045,
    "c": 0.18304,
    "h": 310.9
  },
  "luminance": 0.08368
}

Semantic roles & 50–950 ramp

primary
#782CA1
secondary
#88BF6A
accent
#E0477D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA1

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

Preview Lab → · Contrast checker → · Palette generator →

#782CA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva