#782FC1#782FC1

#782FC1 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.212 H 301.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#782FC1
RGBrgb(120, 47, 193)
HSLhsl(270, 61%, 47%)
HSVhsv(270, 76%, 76%)
CMYKcmyk(37.8%, 75.6%, 0%, 24.3%)
CIE-LABlab(37.62, 58.05, -63.26)
CIE-LCHlch(37.62, 85.86, 312.54°)
OKLaboklab(48.85% 0.1108 -0.1806)
OKLCHoklch(48.85% 0.212 301.5)
XYZxyz(18.3855, 9.8763, 51.3794)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FC1 #78C12F
analogous
#2F2FC1 #782FC1 #C12FC1
triadic
#782FC1 #C1782F #2FC178
tetradic
#782FC1 #C12F2F #78C12F #2FC1C1
square
#782FC1 #C12F2F #78C12F #2FC1C1
split-complementary
#782FC1 #C1C12F #2FC12F
monochromatic
#3B175F #592390 #782FC1 #9757D6 #B588E2

Accessibility & contrast

On white

7.06
#782FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#782FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FC1
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FC1#FFFFFF#000000##FFFFFF
##782FC11.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#0058BE
Tritanopia (blue-blind)
#685576
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #782fc1;
/* rgb */ color: rgb(120, 47, 193);
/* oklch */ color: oklch(48.8% 0.212 301.5);
Tailwind
colors: {
  custom: {
    50: '#a56fd5',
    500: '#782fc1',
    950: '#000000',
  },
}
SCSS
$custom: #782fc1;
$custom-light: #a56fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#782fc1",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 193
  },
  "hsl": {
    "h": 270,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48845,
    "c": 0.21182,
    "h": 301.5
  },
  "luminance": 0.09876
}

Semantic roles & 50–950 ramp

primary
#782FC1
secondary
#A6CC80
accent
#E44494
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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