#782BA7#782BA7

#782BA7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.190 H 309.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#782BA7
RGBrgb(120, 43, 167)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.1%, 74.3%, 0%, 34.5%)
CIE-LABlab(35.03, 53.72, -52.06)
CIE-LCHlch(35.03, 74.81, 315.90°)
OKLaboklab(46.39% 0.1199 -0.1476)
OKLCHoklch(46.39% 0.19 309.1)
XYZxyz(15.5832, 8.5111, 37.3736)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BA7 #5AA72B
analogous
#3A2BA7 #782BA7 #A72B98
triadic
#782BA7 #A7782B #2BA778
tetradic
#782BA7 #A73A2B #5AA72B #2B98A7
square
#782BA7 #A73A2B #5AA72B #2B98A7
split-complementary
#782BA7 #98A72B #2BA73A
monochromatic
#321246 #551E76 #782BA7 #9941CE #B372DB

Accessibility & contrast

On white

7.77
#782BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#782BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BA7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BA7#FFFFFF#000000##FFFFFF
##782BA71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0653A4
Tritanopia (blue-blind)
#714867
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ba7;
/* rgb */ color: rgb(120, 43, 167);
/* oklch */ color: oklch(46.4% 0.190 309.1);
Tailwind
colors: {
  custom: {
    50: '#a46cc2',
    500: '#782ba7',
    950: '#000000',
  },
}
SCSS
$custom: #782ba7;
$custom-light: #a46cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#782ba7",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 277.258,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46387,
    "c": 0.19015,
    "h": 309.1
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

primary
#782BA7
secondary
#8CC26C
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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