#782FAC#782FAC

#782FAC is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.191 H 307.2°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#782FAC
RGBrgb(120, 47, 172)
HSLhsl(275, 57%, 43%)
HSVhsv(275, 73%, 67%)
CMYKcmyk(30.2%, 72.7%, 0%, 32.5%)
CIE-LABlab(35.99, 53.15, -53.48)
CIE-LCHlch(35.99, 75.40, 314.82°)
OKLaboklab(47.19% 0.1151 -0.1518)
OKLCHoklch(47.19% 0.191 307.2)
XYZxyz(16.2071, 9.0049, 39.9060)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FAC #63AC2F
analogous
#392FAC #782FAC #AC2FA1
triadic
#782FAC #AC782F #2FAC78
tetradic
#782FAC #AC392F #63AC2F #2FA1AC
square
#782FAC #AC392F #63AC2F #2FA1AC
split-complementary
#782FAC #A1AC2F #2FAC39
monochromatic
#35154C #56227C #782FAC #974BCE #B37BDB

Accessibility & contrast

On white

7.50
#782FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782FAC
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FAC#FFFFFF#000000##FFFFFF
##782FAC1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#6F4C6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782fac;
/* rgb */ color: rgb(120, 47, 172);
/* oklch */ color: oklch(47.2% 0.191 307.2);
Tailwind
colors: {
  custom: {
    50: '#a46ec6',
    500: '#782fac',
    950: '#000000',
  },
}
SCSS
$custom: #782fac;
$custom-light: #a46ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#782fac",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 275.04,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47189,
    "c": 0.1905,
    "h": 307.2
  },
  "luminance": 0.09005
}

Semantic roles & 50–950 ramp

primary
#782FAC
secondary
#95C374
accent
#E04787
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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