#782FCA#782FCA

#782FCA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.221 H 299.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#782FCA
RGBrgb(120, 47, 202)
HSLhsl(268, 62%, 49%)
HSVhsv(268, 77%, 79%)
CMYKcmyk(40.6%, 76.7%, 0%, 20.8%)
CIE-LABlab(38.36, 60.19, -67.31)
CIE-LCHlch(38.36, 90.29, 311.81°)
OKLaboklab(49.59% 0.1085 -0.1924)
OKLCHoklch(49.59% 0.221 299.4)
XYZxyz(19.4202, 10.2901, 56.8287)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FCA #81CA2F
analogous
#2F34CA #782FCA #C62FCA
triadic
#782FCA #CA782F #2FCA78
tetradic
#782FCA #CA2F34 #81CA2F #2FCAC6
square
#782FCA #CA2F34 #81CA2F #2FCAC6
split-complementary
#782FCA #CAC62F #34CA2F
monochromatic
#3D1867 #5B2398 #782FCA #975DD9 #B78FE5

Accessibility & contrast

On white

6.87
#782FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#782FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782FCA
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FCA#FFFFFF#000000##FFFFFF
##782FCA1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#64597C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #782fca;
/* rgb */ color: rgb(120, 47, 202);
/* oklch */ color: oklch(49.6% 0.221 299.4);
Tailwind
colors: {
  custom: {
    50: '#a670db',
    500: '#782fca',
    950: '#000000',
  },
}
SCSS
$custom: #782fca;
$custom-light: #a670db;
$custom-dark: #000000;
JSON
{
  "hex": "#782fca",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 268.258,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49592,
    "c": 0.22093,
    "h": 299.4
  },
  "luminance": 0.1029
}

Semantic roles & 50–950 ramp

primary
#782FCA
secondary
#ADCF86
accent
#E54299
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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