#782FA7#782FA7

#782FA7 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.185 H 308.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#782FA7
RGBrgb(120, 47, 167)
HSLhsl(277, 56%, 42%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(28.1%, 71.9%, 0%, 34.5%)
CIE-LABlab(35.63, 52.01, -51.08)
CIE-LCHlch(35.63, 72.90, 315.52°)
OKLaboklab(46.82% 0.1158 -0.1448)
OKLCHoklch(46.82% 0.185 308.7)
XYZxyz(15.7359, 8.8164, 37.4245)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FA7 #5EA72F
analogous
#3C2FA7 #782FA7 #A72F9A
triadic
#782FA7 #A7782F #2FA778
tetradic
#782FA7 #A73C2F #5EA72F #2F9AA7
square
#782FA7 #A73C2F #5EA72F #2F9AA7
split-complementary
#782FA7 #9AA72F #2FA73C
monochromatic
#331447 #562277 #782FA7 #9848CB #B378D9

Accessibility & contrast

On white

7.60
#782FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#782FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FA7
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FA7#FFFFFF#000000##FFFFFF
##782FA71.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1055A4
Tritanopia (blue-blind)
#714A68
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782fa7;
/* rgb */ color: rgb(120, 47, 167);
/* oklch */ color: oklch(46.8% 0.185 308.7);
Tailwind
colors: {
  custom: {
    50: '#a36ec2',
    500: '#782fa7',
    950: '#000000',
  },
}
SCSS
$custom: #782fa7;
$custom-light: #a36ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#782fa7",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 276.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46815,
    "c": 0.18542,
    "h": 308.7
  },
  "luminance": 0.08816
}

Semantic roles & 50–950 ramp

primary
#782FA7
secondary
#90C171
accent
#DF4884
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #782FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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