#782DB9#782DB9

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

Color values

HEX#782DB9
RGBrgb(120, 45, 185)
HSLhsl(272, 61%, 45%)
HSVhsv(272, 76%, 73%)
CMYKcmyk(35.1%, 75.7%, 0%, 27.5%)
CIE-LABlab(36.69, 57.00, -60.07)
CIE-LCHlch(36.69, 82.80, 313.50°)
OKLaboklab(48% 0.1144 -0.1712)
OKLCHoklch(48% 0.206 303.8)
XYZxyz(17.4390, 9.3727, 46.7799)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DB9 #6EB92D
analogous
#322DB9 #782DB9 #B92DB4
triadic
#782DB9 #B9782D #2DB978
tetradic
#782DB9 #B9322D #6EB92D #2DB4B9
square
#782DB9 #B9322D #6EB92D #2DB4B9
split-complementary
#782DB9 #B4B92D #2DB932
monochromatic
#381557 #582188 #782DB9 #964FD4 #B480E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##782DB9#FFFFFF#000000##FFFFFF
##782DB91.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)
#0055BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#6B5171
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782db9;
/* rgb */ color: rgb(120, 45, 185);
/* oklch */ color: oklch(48.0% 0.206 303.8);
Tailwind
colors: {
  custom: {
    50: '#a56ecf',
    500: '#782db9',
    950: '#000000',
  },
}
SCSS
$custom: #782db9;
$custom-light: #a56ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#782db9",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 272.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47995,
    "c": 0.20587,
    "h": 303.8
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#782DB9
secondary
#9EC979
accent
#E4448E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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