#782BCA#782BCA

#782BCA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.225 H 299.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#782BCA
RGBrgb(120, 43, 202)
HSLhsl(269, 65%, 48%)
HSVhsv(269, 79%, 79%)
CMYKcmyk(40.6%, 78.7%, 0%, 20.8%)
CIE-LABlab(37.82, 61.76, -68.19)
CIE-LCHlch(37.82, 92.00, 312.16°)
OKLaboklab(49.21% 0.1116 -0.195)
OKLCHoklch(49.21% 0.225 299.8)
XYZxyz(19.2676, 9.9849, 56.7778)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BCA #7DCA2B
analogous
#2B2DCA #782BCA #C82BCA
triadic
#782BCA #CA782B #2BCA78
tetradic
#782BCA #CA2B2D #7DCA2B #2BCAC8
square
#782BCA #CA2B2D #7DCA2B #2BCAC8
split-complementary
#782BCA #CAC82B #2DCA2B
monochromatic
#3C1665 #5A2098 #782BCA #9757DB #B689E6

Accessibility & contrast

On white

7.01
#782BCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#782BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782BCA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BCA#FFFFFF#000000##FFFFFF
##782BCA1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#64577B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #782bca;
/* rgb */ color: rgb(120, 43, 202);
/* oklch */ color: oklch(49.2% 0.225 299.8);
Tailwind
colors: {
  custom: {
    50: '#a66edb',
    500: '#782bca',
    950: '#000000',
  },
}
SCSS
$custom: #782bca;
$custom-light: #a66edb;
$custom-dark: #000000;
JSON
{
  "hex": "#782bca",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 202
  },
  "hsl": {
    "h": 269.057,
    "s": 64.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49213,
    "c": 0.22472,
    "h": 299.8
  },
  "luminance": 0.09985
}

Semantic roles & 50–950 ramp

primary
#782BCA
secondary
#AAD081
accent
#E84097
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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