#781DC9#781DC9

#781DC9 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 48.0% C 0.235 H 301.1°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#781DC9
RGBrgb(120, 29, 201)
HSLhsl(272, 75%, 45%)
HSVhsv(272, 86%, 79%)
CMYKcmyk(40.3%, 85.6%, 0%, 21.2%)
CIE-LABlab(36.15, 66.13, -70.33)
CIE-LCHlch(36.15, 96.54, 313.24°)
OKLaboklab(48.04% 0.1211 -0.2012)
OKLCHoklch(48.04% 0.235 301.1)
XYZxyz(18.7251, 9.0887, 56.0148)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781DC9 #6EC91D
analogous
#221DC9 #781DC9 #C91DC4
triadic
#781DC9 #C9781D #1DC978
tetradic
#781DC9 #C9221D #6EC91D #1DC4C9
square
#781DC9 #C9221D #6EC91D #1DC4C9
split-complementary
#781DC9 #C4C91D #1DC922
monochromatic
#380E5E #581594 #781DC9 #9640E3 #B475EB

Accessibility & contrast

On white

7.45
#781DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#781DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781DC9
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781DC9#FFFFFF#000000##FFFFFF
##781DC91.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0054C6
Tritanopia (blue-blind)
#655178
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #781dc9;
/* rgb */ color: rgb(120, 29, 201);
/* oklch */ color: oklch(48.0% 0.235 301.1);
Tailwind
colors: {
  custom: {
    50: '#a768db',
    500: '#781dc9',
    950: '#000000',
  },
}
SCSS
$custom: #781dc9;
$custom-light: #a768db;
$custom-dark: #000000;
JSON
{
  "hex": "#781dc9",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 201
  },
  "hsl": {
    "h": 271.744,
    "s": 74.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48037,
    "c": 0.23485,
    "h": 301.1
  },
  "luminance": 0.09089
}

Semantic roles & 50–950 ramp

primary
#781DC9
secondary
#9ED270
accent
#F1368E
background
#FAF6FD
surface
#F5EBFB
border
#CFC6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #781DC9

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

Preview Lab → · Contrast checker → · Palette generator →

#781DC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva