#782AAF#782AAF

#782AAF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.9% C 0.199 H 306.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#782AAF
RGBrgb(120, 42, 175)
HSLhsl(275, 61%, 43%)
HSVhsv(275, 76%, 69%)
CMYKcmyk(31.4%, 76%, 0%, 31.4%)
CIE-LABlab(35.49, 55.92, -56.09)
CIE-LCHlch(35.49, 79.21, 314.91°)
OKLaboklab(46.9% 0.1193 -0.1595)
OKLCHoklch(46.9% 0.199 306.8)
XYZxyz(16.3099, 8.7443, 41.3777)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AAF #61AF2A
analogous
#362AAF #782AAF #AF2AA3
triadic
#782AAF #AF782A #2AAF78
tetradic
#782AAF #AF362A #61AF2A #2AA3AF
square
#782AAF #AF362A #61AF2A #2AA3AF
split-complementary
#782AAF #A3AF2A #2AAF36
monochromatic
#34124C #561E7E #782AAF #9744D2 #B375DE

Accessibility & contrast

On white

7.64
#782AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#782AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AAF
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AAF#FFFFFF#000000##FFFFFF
##782AAF1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#6E4B6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782aaf;
/* rgb */ color: rgb(120, 42, 175);
/* oklch */ color: oklch(46.9% 0.199 306.8);
Tailwind
colors: {
  custom: {
    50: '#a46cc8',
    500: '#782aaf',
    950: '#000000',
  },
}
SCSS
$custom: #782aaf;
$custom-light: #a46cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#782aaf",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 275.188,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46903,
    "c": 0.19914,
    "h": 306.8
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#782AAF
secondary
#93C66F
accent
#E44386
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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