#782CA3#782CA3

#782CA3 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.185 H 310.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#782CA3
RGBrgb(120, 44, 163)
HSLhsl(278, 57%, 41%)
HSVhsv(278, 73%, 64%)
CMYKcmyk(26.4%, 73%, 0%, 36.1%)
CIE-LABlab(34.88, 52.41, -49.89)
CIE-LCHlch(34.88, 72.36, 316.42°)
OKLaboklab(46.19% 0.1195 -0.1412)
OKLCHoklch(46.19% 0.185 310.2)
XYZxyz(15.2560, 8.4391, 35.4685)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA3 #57A32C
analogous
#3C2CA3 #782CA3 #A32C92
triadic
#782CA3 #A3782C #2CA378
tetradic
#782CA3 #A33C2C #57A32C #2C92A3
square
#782CA3 #A33C2C #57A32C #2C92A3
split-complementary
#782CA3 #92A32C #2CA33C
monochromatic
#311243 #551F73 #782CA3 #9941CC #B371D9

Accessibility & contrast

On white

7.81
#782CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#782CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA3
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA3#FFFFFF#000000##FFFFFF
##782CA31.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#1453A0
Tritanopia (blue-blind)
#724765
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ca3;
/* rgb */ color: rgb(120, 44, 163);
/* oklch */ color: oklch(46.2% 0.185 310.2);
Tailwind
colors: {
  custom: {
    50: '#a36cbf',
    500: '#782ca3',
    950: '#000000',
  },
}
SCSS
$custom: #782ca3;
$custom-light: #a36cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca3",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 278.319,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46193,
    "c": 0.18502,
    "h": 310.2
  },
  "luminance": 0.08439
}

Semantic roles & 50–950 ramp

primary
#782CA3
secondary
#8AC06B
accent
#E1477F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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