#782EAC#782EAC

#782EAC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.192 H 307.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#782EAC
RGBrgb(120, 46, 172)
HSLhsl(275, 58%, 43%)
HSVhsv(275, 73%, 67%)
CMYKcmyk(30.2%, 73.3%, 0%, 32.5%)
CIE-LABlab(35.84, 53.58, -53.73)
CIE-LCHlch(35.84, 75.88, 314.92°)
OKLaboklab(47.08% 0.1161 -0.1525)
OKLCHoklch(47.08% 0.192 307.3)
XYZxyz(16.1675, 8.9258, 39.8929)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EAC #62AC2E
analogous
#392EAC #782EAC #AC2EA1
triadic
#782EAC #AC782E #2EAC78
tetradic
#782EAC #AC392E #62AC2E #2EA1AC
square
#782EAC #AC392E #62AC2E #2EA1AC
split-complementary
#782EAC #A1AC2E #2EAC39
monochromatic
#35144B #56217C #782EAC #9749CE #B379DB

Accessibility & contrast

On white

7.54
#782EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#782EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EAC
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EAC#FFFFFF#000000##FFFFFF
##782EAC1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782eac;
/* rgb */ color: rgb(120, 46, 172);
/* oklch */ color: oklch(47.1% 0.192 307.3);
Tailwind
colors: {
  custom: {
    50: '#a46ec6',
    500: '#782eac',
    950: '#000000',
  },
}
SCSS
$custom: #782eac;
$custom-light: #a46ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#782eac",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 275.238,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47081,
    "c": 0.19167,
    "h": 307.3
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #782EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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