#782D9F#782D9F

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

Color values

HEX#782D9F
RGBrgb(120, 45, 159)
HSLhsl(279, 56%, 40%)
HSVhsv(279, 72%, 62%)
CMYKcmyk(24.5%, 71.7%, 0%, 37.6%)
CIE-LABlab(34.75, 51.10, -47.69)
CIE-LCHlch(34.75, 69.90, 316.98°)
OKLaboklab(46.01% 0.119 -0.1348)
OKLCHoklch(46.01% 0.18 311.4)
XYZxyz(14.9410, 8.3734, 33.6233)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D9F #549F2D
analogous
#3F2D9F #782D9F #9F2D8D
triadic
#782D9F #9F782D #2D9F78
tetradic
#782D9F #9F3F2D #549F2D #2D8D9F
square
#782D9F #9F3F2D #549F2D #2D8D9F
split-complementary
#782D9F #8D9F2D #2D9F3F
monochromatic
#301240 #54206F #782D9F #9A40C9 #B370D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##782D9F#FFFFFF#000000##FFFFFF
##782D9F1.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)
#004EA2
Deuteranopia (green-blind)
#1D539D
Tritanopia (blue-blind)
#734663
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782d9f;
/* rgb */ color: rgb(120, 45, 159);
/* oklch */ color: oklch(46.0% 0.180 311.4);
Tailwind
colors: {
  custom: {
    50: '#a36dbc',
    500: '#782d9f',
    950: '#000000',
  },
}
SCSS
$custom: #782d9f;
$custom-light: #a36dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#782d9f",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 279.474,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.46008,
    "c": 0.17982,
    "h": 311.4
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#782D9F
secondary
#87BE6A
accent
#DF497C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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