#781EA6#781EA6

#781EA6 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.202 H 310.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#781EA6
RGBrgb(120, 30, 166)
HSLhsl(280, 69%, 38%)
HSVhsv(280, 82%, 65%)
CMYKcmyk(27.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(33.30, 58.26, -54.26)
CIE-LCHlch(33.30, 79.62, 317.04°)
OKLaboklab(45.15% 0.1313 -0.154)
OKLCHoklch(45.15% 0.202 310.4)
XYZxyz(15.0916, 7.6751, 36.7554)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EA6 #4CA61E
analogous
#341EA6 #781EA6 #A61E90
triadic
#781EA6 #A6781E #1EA678
tetradic
#781EA6 #A6341E #4CA61E #1E90A6
square
#781EA6 #A6341E #4CA61E #1E90A6
split-complementary
#781EA6 #90A61E #1EA634
monochromatic
#2D0B3E #531572 #781EA6 #9D29D8 #B55DE2

Accessibility & contrast

On white

8.28
#781EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781EA6
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EA6#FFFFFF#000000##FFFFFF
##781EA61.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#714163
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ea6;
/* rgb */ color: rgb(120, 30, 166);
/* oklch */ color: oklch(45.1% 0.202 310.4);
Tailwind
colors: {
  custom: {
    50: '#a466c1',
    500: '#781ea6',
    950: '#000000',
  },
}
SCSS
$custom: #781ea6;
$custom-light: #a466c1;
$custom-dark: #000000;
JSON
{
  "hex": "#781ea6",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 279.706,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45148,
    "c": 0.20236,
    "h": 310.4
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#781EA6
secondary
#7EC65A
accent
#EC3C77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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