#782AB5#782AB5

#782AB5 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.205 H 305.1°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#782AB5
RGBrgb(120, 42, 181)
HSLhsl(274, 62%, 44%)
HSVhsv(274, 77%, 71%)
CMYKcmyk(33.7%, 76.8%, 0%, 29%)
CIE-LABlab(35.96, 57.28, -58.90)
CIE-LCHlch(35.96, 82.16, 314.20°)
OKLaboklab(47.38% 0.1179 -0.1677)
OKLCHoklch(47.38% 0.205 305.1)
XYZxyz(16.9123, 8.9853, 44.5505)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB5 #67B52A
analogous
#322AB5 #782AB5 #B52AAC
triadic
#782AB5 #B5782A #2AB578
tetradic
#782AB5 #B5322A #67B52A #2AACB5
square
#782AB5 #B5322A #67B52A #2AACB5
split-complementary
#782AB5 #ACB52A #2AB532
monochromatic
#361352 #571E83 #782AB5 #9748D4 #B379E0

Accessibility & contrast

On white

7.51
#782AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#782AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB5
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB5#FFFFFF#000000##FFFFFF
##782AB51.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#6C4D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782ab5;
/* rgb */ color: rgb(120, 42, 181);
/* oklch */ color: oklch(47.4% 0.205 305.1);
Tailwind
colors: {
  custom: {
    50: '#a56ccc',
    500: '#782ab5',
    950: '#000000',
  },
}
SCSS
$custom: #782ab5;
$custom-light: #a56ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab5",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 273.669,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47379,
    "c": 0.20503,
    "h": 305.1
  },
  "luminance": 0.08985
}

Semantic roles & 50–950 ramp

primary
#782AB5
secondary
#98C873
accent
#E5428A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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