#782FB6#782FB6

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

Color values

HEX#782FB6
RGBrgb(120, 47, 182)
HSLhsl(272, 59%, 45%)
HSVhsv(272, 74%, 71%)
CMYKcmyk(34.1%, 74.2%, 0%, 28.6%)
CIE-LABlab(36.75, 55.46, -58.20)
CIE-LCHlch(36.75, 80.39, 313.62°)
OKLaboklab(47.96% 0.1132 -0.1657)
OKLCHoklch(47.96% 0.201 304.3)
XYZxyz(17.2038, 9.4036, 45.1556)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FB6 #6DB62F
analogous
#342FB6 #782FB6 #B62FB1
triadic
#782FB6 #B6782F #2FB678
tetradic
#782FB6 #B6342F #6DB62F #2FB1B6
square
#782FB6 #B6342F #6DB62F #2FB1B6
split-complementary
#782FB6 #B1B62F #2FB634
monochromatic
#381655 #582285 #782FB6 #9650D2 #B481DE

Accessibility & contrast

On white

7.29
#782FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#782FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FB6
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FB6#FFFFFF#000000##FFFFFF
##782FB61.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#6C5070
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782fb6;
/* rgb */ color: rgb(120, 47, 182);
/* oklch */ color: oklch(48.0% 0.201 304.3);
Tailwind
colors: {
  custom: {
    50: '#a46fcd',
    500: '#782fb6',
    950: '#000000',
  },
}
SCSS
$custom: #782fb6;
$custom-light: #a46fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#782fb6",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 272.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47962,
    "c": 0.20067,
    "h": 304.3
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#782FB6
secondary
#9DC779
accent
#E2468E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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