#782EB7#782EB7

#782EB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.203 H 304.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#782EB7
RGBrgb(120, 46, 183)
HSLhsl(272, 60%, 45%)
HSVhsv(272, 75%, 72%)
CMYKcmyk(34.4%, 74.9%, 0%, 28.2%)
CIE-LABlab(36.68, 56.12, -58.90)
CIE-LCHlch(36.68, 81.36, 313.61°)
OKLaboklab(47.94% 0.1139 -0.1678)
OKLCHoklch(47.94% 0.203 304.2)
XYZxyz(17.2680, 9.3660, 45.6887)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB7 #6DB72E
analogous
#342EB7 #782EB7 #B72EB1
triadic
#782EB7 #B7782E #2EB778
tetradic
#782EB7 #B7342E #6DB72E #2EB1B7
square
#782EB7 #B7342E #6DB72E #2EB1B7
split-complementary
#782EB7 #B1B72E #2EB734
monochromatic
#381555 #582286 #782EB7 #964FD3 #B480DF

Accessibility & contrast

On white

7.31
#782EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#782EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB7#FFFFFF#000000##FFFFFF
##782EB71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#6C5071
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782eb7;
/* rgb */ color: rgb(120, 46, 183);
/* oklch */ color: oklch(47.9% 0.203 304.2);
Tailwind
colors: {
  custom: {
    50: '#a56ece',
    500: '#782eb7',
    950: '#000000',
  },
}
SCSS
$custom: #782eb7;
$custom-light: #a56ece;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb7",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 272.409,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47937,
    "c": 0.20278,
    "h": 304.2
  },
  "luminance": 0.09366
}

Semantic roles & 50–950 ramp

primary
#782EB7
secondary
#9DC879
accent
#E3458E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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