#782CAB#782CAB

#782CAB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.193 H 307.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#782CAB
RGBrgb(120, 44, 171)
HSLhsl(276, 59%, 42%)
HSVhsv(276, 74%, 67%)
CMYKcmyk(29.8%, 74.3%, 0%, 32.9%)
CIE-LABlab(35.47, 54.20, -53.74)
CIE-LCHlch(35.47, 76.33, 315.25°)
OKLaboklab(46.79% 0.1182 -0.1526)
OKLCHoklch(46.79% 0.193 307.8)
XYZxyz(15.9956, 8.7349, 39.3635)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CAB #5FAB2C
analogous
#392CAB #782CAB #AB2C9E
triadic
#782CAB #AB782C #2CAB78
tetradic
#782CAB #AB392C #5FAB2C #2C9EAB
square
#782CAB #AB392C #5FAB2C #2C9EAB
split-complementary
#782CAB #9EAB2C #2CAB39
monochromatic
#34134A #561F7A #782CAB #9845CF #B376DC

Accessibility & contrast

On white

7.64
#782CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#782CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CAB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CAB#FFFFFF#000000##FFFFFF
##782CAB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#704A69
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782cab;
/* rgb */ color: rgb(120, 44, 171);
/* oklch */ color: oklch(46.8% 0.193 307.8);
Tailwind
colors: {
  custom: {
    50: '#a46dc5',
    500: '#782cab',
    950: '#000000',
  },
}
SCSS
$custom: #782cab;
$custom-light: #a46dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#782cab",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 275.906,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46794,
    "c": 0.19298,
    "h": 307.8
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

primary
#782CAB
secondary
#91C36F
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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