#782CA2#782CA2

#782CA2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.184 H 310.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#782CA2
RGBrgb(120, 44, 162)
HSLhsl(279, 57%, 40%)
HSVhsv(279, 73%, 64%)
CMYKcmyk(25.9%, 72.8%, 0%, 36.5%)
CIE-LABlab(34.81, 52.19, -49.40)
CIE-LCHlch(34.81, 71.86, 316.58°)
OKLaboklab(46.12% 0.1197 -0.1398)
OKLCHoklch(46.12% 0.184 310.6)
XYZxyz(15.1667, 8.4034, 34.9985)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA2 #56A22C
analogous
#3D2CA2 #782CA2 #A22C91
triadic
#782CA2 #A2782C #2CA278
tetradic
#782CA2 #A23D2C #56A22C #2C91A2
square
#782CA2 #A23D2C #56A22C #2C91A2
split-complementary
#782CA2 #91A22C #2CA23D
monochromatic
#311242 #541F72 #782CA2 #9A40CB #B370D8

Accessibility & contrast

On white

7.83
#782CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#782CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA2#FFFFFF#000000##FFFFFF
##782CA21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#17539F
Tritanopia (blue-blind)
#724664
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ca2;
/* rgb */ color: rgb(120, 44, 162);
/* oklch */ color: oklch(46.1% 0.184 310.6);
Tailwind
colors: {
  custom: {
    50: '#a36cbe',
    500: '#782ca2',
    950: '#000000',
  },
}
SCSS
$custom: #782ca2;
$custom-light: #a36cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca2",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 278.644,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46119,
    "c": 0.18403,
    "h": 310.6
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#782CA2
secondary
#89BF6A
accent
#E1477E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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