#781DAD#781DAD

#781DAD is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.6% C 0.209 H 308.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#781DAD
RGBrgb(120, 29, 173)
HSLhsl(278, 71%, 40%)
HSVhsv(278, 83%, 68%)
CMYKcmyk(30.6%, 83.2%, 0%, 32.2%)
CIE-LABlab(33.75, 60.05, -57.73)
CIE-LCHlch(33.75, 83.30, 316.13°)
OKLaboklab(45.64% 0.1301 -0.1642)
OKLCHoklch(45.64% 0.21 308.4)
XYZxyz(15.7263, 7.8892, 40.2214)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781DAD #52AD1D
analogous
#301DAD #781DAD #AD1D9A
triadic
#781DAD #AD781D #1DAD78
tetradic
#781DAD #AD301D #52AD1D #1D9AAD
square
#781DAD #AD301D #52AD1D #1D9AAD
split-complementary
#781DAD #9AAD1D #1DAD30
monochromatic
#2F0B44 #541479 #781DAD #9B2CDC #B460E4

Accessibility & contrast

On white

8.15
#781DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#781DAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781DAD
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781DAD#FFFFFF#000000##FFFFFF
##781DAD1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#6F4467
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #781dad;
/* rgb */ color: rgb(120, 29, 173);
/* oklch */ color: oklch(45.6% 0.209 308.4);
Tailwind
colors: {
  custom: {
    50: '#a566c6',
    500: '#781dad',
    950: '#000000',
  },
}
SCSS
$custom: #781dad;
$custom-light: #a566c6;
$custom-dark: #000000;
JSON
{
  "hex": "#781dad",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 173
  },
  "hsl": {
    "h": 277.917,
    "s": 71.287,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45639,
    "c": 0.2095,
    "h": 308.4
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

primary
#781DAD
secondary
#85C95D
accent
#EE3A7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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