#782CBF#782CBF

#782CBF is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.213 H 302.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#782CBF
RGBrgb(120, 44, 191)
HSLhsl(271, 63%, 46%)
HSVhsv(271, 77%, 75%)
CMYKcmyk(37.2%, 77%, 0%, 25.1%)
CIE-LABlab(37.03, 58.79, -63.04)
CIE-LCHlch(37.03, 86.20, 313.00°)
OKLaboklab(48.38% 0.1138 -0.1799)
OKLCHoklch(48.38% 0.213 302.3)
XYZxyz(18.0481, 9.5560, 50.1738)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CBF #73BF2C
analogous
#2E2CBF #782CBF #BF2CBC
triadic
#782CBF #BF782C #2CBF78
tetradic
#782CBF #BF2E2C #73BF2C #2CBCBF
square
#782CBF #BF2E2C #73BF2C #2CBCBF
split-complementary
#782CBF #BCBF2C #2CBF2E
monochromatic
#39155C #59218D #782CBF #9651D7 #B483E2

Accessibility & contrast

On white

7.21
#782CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#782CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CBF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CBF#FFFFFF#000000##FFFFFF
##782CBF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#695375
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782cbf;
/* rgb */ color: rgb(120, 44, 191);
/* oklch */ color: oklch(48.4% 0.213 302.3);
Tailwind
colors: {
  custom: {
    50: '#a56ed3',
    500: '#782cbf',
    950: '#000000',
  },
}
SCSS
$custom: #782cbf;
$custom-light: #a56ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#782cbf",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 191
  },
  "hsl": {
    "h": 271.02,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48384,
    "c": 0.21289,
    "h": 302.3
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#782CBF
secondary
#A2CC7B
accent
#E64291
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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