#782FB2#782FB2

#782FB2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.197 H 305.4°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#782FB2
RGBrgb(120, 47, 178)
HSLhsl(273, 58%, 44%)
HSVhsv(273, 74%, 70%)
CMYKcmyk(32.6%, 73.6%, 0%, 30.2%)
CIE-LABlab(36.44, 54.53, -56.33)
CIE-LCHlch(36.44, 78.40, 314.07°)
OKLaboklab(47.65% 0.114 -0.1602)
OKLCHoklch(47.65% 0.197 305.4)
XYZxyz(16.7963, 9.2406, 43.0096)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FB2 #69B22F
analogous
#372FB2 #782FB2 #B22FAB
triadic
#782FB2 #B2782F #2FB278
tetradic
#782FB2 #B2372F #69B22F #2FABB2
square
#782FB2 #B2372F #69B22F #2FABB2
split-complementary
#782FB2 #ABB22F #2FB237
monochromatic
#371551 #572282 #782FB2 #974ED0 #B37EDD

Accessibility & contrast

On white

7.37
#782FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#782FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FB2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FB2#FFFFFF#000000##FFFFFF
##782FB21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#6D4F6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782fb2;
/* rgb */ color: rgb(120, 47, 178);
/* oklch */ color: oklch(47.6% 0.197 305.4);
Tailwind
colors: {
  custom: {
    50: '#a46fca',
    500: '#782fb2',
    950: '#000000',
  },
}
SCSS
$custom: #782fb2;
$custom-light: #a46fca;
$custom-dark: #000000;
JSON
{
  "hex": "#782fb2",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 273.435,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47649,
    "c": 0.1966,
    "h": 305.4
  },
  "luminance": 0.0924
}

Semantic roles & 50–950 ramp

primary
#782FB2
secondary
#9AC677
accent
#E1468B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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