#782BAB#782BAB

#782BAB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.194 H 307.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#782BAB
RGBrgb(120, 43, 171)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 67%)
CMYKcmyk(29.8%, 74.9%, 0%, 32.9%)
CIE-LABlab(35.32, 54.62, -53.97)
CIE-LCHlch(35.32, 76.78, 315.34°)
OKLaboklab(46.69% 0.1191 -0.1532)
OKLCHoklch(46.69% 0.194 307.9)
XYZxyz(15.9587, 8.6613, 39.3513)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BAB #5EAB2B
analogous
#382BAB #782BAB #AB2B9E
triadic
#782BAB #AB782B #2BAB78
tetradic
#782BAB #AB382B #5EAB2B #2B9EAB
square
#782BAB #AB382B #5EAB2B #2B9EAB
split-complementary
#782BAB #9EAB2B #2BAB38
monochromatic
#331249 #561F7A #782BAB #9843D0 #B374DC

Accessibility & contrast

On white

7.69
#782BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#782BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BAB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BAB#FFFFFF#000000##FFFFFF
##782BAB1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782bab;
/* rgb */ color: rgb(120, 43, 171);
/* oklch */ color: oklch(46.7% 0.194 307.9);
Tailwind
colors: {
  custom: {
    50: '#a46cc5',
    500: '#782bab',
    950: '#000000',
  },
}
SCSS
$custom: #782bab;
$custom-light: #a46cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#782bab",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 276.094,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.19411,
    "h": 307.9
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#782BAB
secondary
#90C46E
accent
#E34584
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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