#781DA7#781DA7

#781DA7 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.204 H 310.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#781DA7
RGBrgb(120, 29, 167)
HSLhsl(280, 70%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(28.1%, 82.6%, 0%, 34.5%)
CIE-LABlab(33.27, 58.78, -54.91)
CIE-LCHlch(33.27, 80.44, 316.95°)
OKLaboklab(45.15% 0.1318 -0.1559)
OKLCHoklch(45.15% 0.204 310.2)
XYZxyz(15.1588, 7.6622, 37.2321)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781DA7 #4CA71D
analogous
#331DA7 #781DA7 #A71D91
triadic
#781DA7 #A7781D #1DA778
tetradic
#781DA7 #A7331D #4CA71D #1D91A7
square
#781DA7 #A7331D #4CA71D #1D91A7
split-complementary
#781DA7 #91A71D #1DA733
monochromatic
#2D0B3F #531473 #781DA7 #9D28DA #B55CE3

Accessibility & contrast

On white

8.29
#781DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781DA7
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781DA7#FFFFFF#000000##FFFFFF
##781DA71.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#714264
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781da7;
/* rgb */ color: rgb(120, 29, 167);
/* oklch */ color: oklch(45.2% 0.204 310.2);
Tailwind
colors: {
  custom: {
    50: '#a466c2',
    500: '#781da7',
    950: '#000000',
  },
}
SCSS
$custom: #781da7;
$custom-light: #a466c2;
$custom-dark: #000000;
JSON
{
  "hex": "#781da7",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 279.565,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.20411,
    "h": 310.2
  },
  "luminance": 0.07662
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #781DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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