#782AB7#782AB7

#782AB7 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.207 H 304.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#782AB7
RGBrgb(120, 42, 183)
HSLhsl(273, 63%, 44%)
HSVhsv(273, 77%, 72%)
CMYKcmyk(34.4%, 77%, 0%, 28.2%)
CIE-LABlab(36.11, 57.74, -59.82)
CIE-LCHlch(36.11, 83.14, 313.98°)
OKLaboklab(47.54% 0.1175 -0.1704)
OKLCHoklch(47.54% 0.207 304.6)
XYZxyz(17.1190, 9.0680, 45.6390)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB7 #69B72A
analogous
#312AB7 #782AB7 #B72AB0
triadic
#782AB7 #B7782A #2AB778
tetradic
#782AB7 #B7312A #69B72A #2AB0B7
square
#782AB7 #B7312A #69B72A #2AB0B7
split-complementary
#782AB7 #B0B72A #2AB731
monochromatic
#371353 #571F85 #782AB7 #9749D5 #B37BE1

Accessibility & contrast

On white

7.46
#782AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#782AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB7
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB7#FFFFFF#000000##FFFFFF
##782AB71.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#6C4E70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782ab7;
/* rgb */ color: rgb(120, 42, 183);
/* oklch */ color: oklch(47.5% 0.207 304.6);
Tailwind
colors: {
  custom: {
    50: '#a56cce',
    500: '#782ab7',
    950: '#000000',
  },
}
SCSS
$custom: #782ab7;
$custom-light: #a56cce;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab7",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 273.191,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4754,
    "c": 0.20699,
    "h": 304.6
  },
  "luminance": 0.09068
}

Semantic roles & 50–950 ramp

primary
#782AB7
secondary
#9AC974
accent
#E6428B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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