#782AB9#782AB9

#782AB9 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.209 H 304.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#782AB9
RGBrgb(120, 42, 185)
HSLhsl(273, 63%, 45%)
HSVhsv(273, 77%, 73%)
CMYKcmyk(35.1%, 77.3%, 0%, 27.5%)
CIE-LABlab(36.27, 58.19, -60.75)
CIE-LCHlch(36.27, 84.12, 313.77°)
OKLaboklab(47.7% 0.117 -0.1731)
OKLCHoklch(47.7% 0.209 304)
XYZxyz(17.3286, 9.1518, 46.7431)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB9 #6BB92A
analogous
#302AB9 #782AB9 #B92AB3
triadic
#782AB9 #B9782A #2AB978
tetradic
#782AB9 #B9302A #6BB92A #2AB3B9
square
#782AB9 #B9302A #6BB92A #2AB3B9
split-complementary
#782AB9 #B3B92A #2AB930
monochromatic
#371355 #581F87 #782AB9 #964AD6 #B37CE1

Accessibility & contrast

On white

7.42
#782AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#782AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB9
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB9#FFFFFF#000000##FFFFFF
##782AB91.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#6B4F71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782ab9;
/* rgb */ color: rgb(120, 42, 185);
/* oklch */ color: oklch(47.7% 0.209 304.0);
Tailwind
colors: {
  custom: {
    50: '#a56ccf',
    500: '#782ab9',
    950: '#000000',
  },
}
SCSS
$custom: #782ab9;
$custom-light: #a56ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab9",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 272.727,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47702,
    "c": 0.20895,
    "h": 304
  },
  "luminance": 0.09152
}

Semantic roles & 50–950 ramp

primary
#782AB9
secondary
#9CCA75
accent
#E6428C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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