#782DB2#782DB2

#782DB2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.199 H 305.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#782DB2
RGBrgb(120, 45, 178)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 70%)
CMYKcmyk(32.6%, 74.7%, 0%, 30.2%)
CIE-LABlab(36.15, 55.38, -56.81)
CIE-LCHlch(36.15, 79.34, 314.27°)
OKLaboklab(47.44% 0.1159 -0.1616)
OKLCHoklch(47.44% 0.199 305.6)
XYZxyz(16.7182, 9.0843, 42.9836)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB2 #67B22D
analogous
#362DB2 #782DB2 #B22DA9
triadic
#782DB2 #B2782D #2DB278
tetradic
#782DB2 #B2362D #67B22D #2DA9B2
square
#782DB2 #B2362D #67B22D #2DA9B2
split-complementary
#782DB2 #A9B22D #2DB236
monochromatic
#361450 #572181 #782DB2 #974BD1 #B37CDE

Accessibility & contrast

On white

7.46
#782DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#782DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DB2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DB2#FFFFFF#000000##FFFFFF
##782DB21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#6D4E6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782db2;
/* rgb */ color: rgb(120, 45, 178);
/* oklch */ color: oklch(47.4% 0.199 305.6);
Tailwind
colors: {
  custom: {
    50: '#a46eca',
    500: '#782db2',
    950: '#000000',
  },
}
SCSS
$custom: #782db2;
$custom-light: #a46eca;
$custom-dark: #000000;
JSON
{
  "hex": "#782db2",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 273.835,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47439,
    "c": 0.19885,
    "h": 305.6
  },
  "luminance": 0.09084
}

Semantic roles & 50–950 ramp

primary
#782DB2
secondary
#98C675
accent
#E3458A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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