#782EB9#782EB9

#782EB9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.205 H 303.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#782EB9
RGBrgb(120, 46, 185)
HSLhsl(272, 60%, 45%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(35.1%, 75.1%, 0%, 27.5%)
CIE-LABlab(36.84, 56.58, -59.83)
CIE-LCHlch(36.84, 82.35, 313.40°)
OKLaboklab(48.1% 0.1135 -0.1705)
OKLCHoklch(48.1% 0.205 303.6)
XYZxyz(17.4776, 9.4499, 46.7928)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB9 #6FB92E
analogous
#322EB9 #782EB9 #B92EB5
triadic
#782EB9 #B9782E #2EB978
tetradic
#782EB9 #B9322E #6FB92E #2EB5B9
square
#782EB9 #B9322E #6FB92E #2EB5B9
split-complementary
#782EB9 #B5B92E #2EB932
monochromatic
#381657 #582288 #782EB9 #9651D4 #B482E0

Accessibility & contrast

On white

7.27
#782EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#782EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB9#FFFFFF#000000##FFFFFF
##782EB91.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#6B5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782eb9;
/* rgb */ color: rgb(120, 46, 185);
/* oklch */ color: oklch(48.1% 0.205 303.6);
Tailwind
colors: {
  custom: {
    50: '#a56ecf',
    500: '#782eb9',
    950: '#000000',
  },
}
SCSS
$custom: #782eb9;
$custom-light: #a56ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb9",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 271.942,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48096,
    "c": 0.2048,
    "h": 303.6
  },
  "luminance": 0.0945
}

Semantic roles & 50–950 ramp

primary
#782EB9
secondary
#9FC97A
accent
#E3448F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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