#782CBD#782CBD

#782CBD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.211 H 302.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#782CBD
RGBrgb(120, 44, 189)
HSLhsl(271, 62%, 46%)
HSVhsv(271, 77%, 74%)
CMYKcmyk(36.5%, 76.7%, 0%, 25.9%)
CIE-LABlab(36.87, 58.33, -62.13)
CIE-LCHlch(36.87, 85.22, 313.19°)
OKLaboklab(48.22% 0.1143 -0.1772)
OKLCHoklch(48.22% 0.211 302.8)
XYZxyz(17.8295, 9.4685, 49.0225)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CBD #71BD2C
analogous
#2F2CBD #782CBD #BD2CB9
triadic
#782CBD #BD782C #2CBD78
tetradic
#782CBD #BD2F2C #71BD2C #2CB9BD
square
#782CBD #BD2F2C #71BD2C #2CB9BD
split-complementary
#782CBD #B9BD2C #2CBD2F
monochromatic
#39155A #58208B #782CBD #9650D6 #B482E2

Accessibility & contrast

On white

7.26
#782CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#782CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CBD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CBD#FFFFFF#000000##FFFFFF
##782CBD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#6A5273
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782cbd;
/* rgb */ color: rgb(120, 44, 189);
/* oklch */ color: oklch(48.2% 0.211 302.8);
Tailwind
colors: {
  custom: {
    50: '#a56ed2',
    500: '#782cbd',
    950: '#000000',
  },
}
SCSS
$custom: #782cbd;
$custom-light: #a56ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#782cbd",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 271.448,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4822,
    "c": 0.21089,
    "h": 302.8
  },
  "luminance": 0.09469
}

Semantic roles & 50–950 ramp

primary
#782CBD
secondary
#A0CB7A
accent
#E54290
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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