#781EA9#781EA9

#781EA9 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.4% C 0.205 H 309.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#781EA9
RGBrgb(120, 30, 169)
HSLhsl(279, 70%, 39%)
HSVhsv(279, 82%, 66%)
CMYKcmyk(29%, 82.2%, 0%, 33.7%)
CIE-LABlab(33.53, 58.90, -55.68)
CIE-LCHlch(33.53, 81.05, 316.61°)
OKLaboklab(45.39% 0.1305 -0.1582)
OKLCHoklch(45.39% 0.205 309.5)
XYZxyz(15.3700, 7.7865, 38.2217)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EA9 #4FA91E
analogous
#331EA9 #781EA9 #A91E95
triadic
#781EA9 #A9781E #1EA978
tetradic
#781EA9 #A9331E #4FA91E #1E95A9
square
#781EA9 #A9331E #4FA91E #1E95A9
split-complementary
#781EA9 #95A91E #1EA933
monochromatic
#2E0C41 #531575 #781EA9 #9C2BD9 #B45FE3

Accessibility & contrast

On white

8.21
#781EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#781EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781EA9
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EA9#FFFFFF#000000##FFFFFF
##781EA91.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#714365
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #781ea9;
/* rgb */ color: rgb(120, 30, 169);
/* oklch */ color: oklch(45.4% 0.205 309.5);
Tailwind
colors: {
  custom: {
    50: '#a466c3',
    500: '#781ea9',
    950: '#000000',
  },
}
SCSS
$custom: #781ea9;
$custom-light: #a466c3;
$custom-dark: #000000;
JSON
{
  "hex": "#781ea9",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 278.849,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45388,
    "c": 0.20507,
    "h": 309.5
  },
  "luminance": 0.07786
}

Semantic roles & 50–950 ramp

primary
#781EA9
secondary
#82C75C
accent
#ED3B7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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