#781DA6#781DA6

#781DA6 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.203 H 310.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#781DA6
RGBrgb(120, 29, 166)
HSLhsl(280, 70%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(27.7%, 82.5%, 0%, 34.9%)
CIE-LABlab(33.19, 58.58, -54.44)
CIE-LCHlch(33.19, 79.96, 317.10°)
OKLaboklab(45.07% 0.132 -0.1545)
OKLCHoklch(45.07% 0.203 310.5)
XYZxyz(15.0667, 7.6253, 36.7471)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781DA6 #4BA61D
analogous
#331DA6 #781DA6 #A61D8F
triadic
#781DA6 #A6781D #1DA678
tetradic
#781DA6 #A6331D #4BA61D #1D8FA6
square
#781DA6 #A6331D #4BA61D #1D8FA6
split-complementary
#781DA6 #8FA61D #1DA633
monochromatic
#2D0B3E #521472 #781DA6 #9D27D9 #B55BE2

Accessibility & contrast

On white

8.32
#781DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#781DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781DA6
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781DA6#FFFFFF#000000##FFFFFF
##781DA61.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#724163
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781da6;
/* rgb */ color: rgb(120, 29, 166);
/* oklch */ color: oklch(45.1% 0.203 310.5);
Tailwind
colors: {
  custom: {
    50: '#a466c1',
    500: '#781da6',
    950: '#000000',
  },
}
SCSS
$custom: #781da6;
$custom-light: #a466c1;
$custom-dark: #000000;
JSON
{
  "hex": "#781da6",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 279.854,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45074,
    "c": 0.20322,
    "h": 310.5
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#781DA6
secondary
#7DC659
accent
#ED3B77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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