#782EAB#782EAB

#782EAB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.191 H 307.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#782EAB
RGBrgb(120, 46, 171)
HSLhsl(276, 58%, 43%)
HSVhsv(276, 73%, 67%)
CMYKcmyk(29.8%, 73.1%, 0%, 32.9%)
CIE-LABlab(35.77, 53.36, -53.25)
CIE-LCHlch(35.77, 75.38, 315.06°)
OKLaboklab(47.01% 0.1162 -0.1511)
OKLCHoklch(47.01% 0.191 307.6)
XYZxyz(16.0719, 8.8876, 39.3890)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EAB #61AB2E
analogous
#392EAB #782EAB #AB2EA0
triadic
#782EAB #AB782E #2EAB78
tetradic
#782EAB #AB392E #61AB2E #2EA0AB
square
#782EAB #AB392E #61AB2E #2EA0AB
split-complementary
#782EAB #A0AB2E #2EAB39
monochromatic
#34144B #56217B #782EAB #9748CE #B379DB

Accessibility & contrast

On white

7.56
#782EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#782EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EAB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EAB#FFFFFF#000000##FFFFFF
##782EAB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#704B6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782eab;
/* rgb */ color: rgb(120, 46, 171);
/* oklch */ color: oklch(47.0% 0.191 307.6);
Tailwind
colors: {
  custom: {
    50: '#a46ec5',
    500: '#782eab',
    950: '#000000',
  },
}
SCSS
$custom: #782eab;
$custom-light: #a46ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#782eab",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 275.52,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47005,
    "c": 0.19067,
    "h": 307.6
  },
  "luminance": 0.08887
}

Semantic roles & 50–950 ramp

primary
#782EAB
secondary
#93C372
accent
#E14786
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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