#781CA6#781CA6

#781CA6 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.0% C 0.204 H 310.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#781CA6
RGBrgb(120, 28, 166)
HSLhsl(280, 71%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(27.7%, 83.1%, 0%, 34.9%)
CIE-LABlab(33.09, 58.88, -54.61)
CIE-LCHlch(33.09, 80.30, 317.16°)
OKLaboklab(45% 0.1327 -0.155)
OKLCHoklch(45% 0.204 310.6)
XYZxyz(15.0426, 7.5771, 36.7391)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781CA6 #4AA61C
analogous
#331CA6 #781CA6 #A61C8F
triadic
#781CA6 #A6781C #1CA678
tetradic
#781CA6 #A6331C #4AA61C #1C8FA6
square
#781CA6 #A6331C #4AA61C #1C8FA6
split-complementary
#781CA6 #8FA61C #1CA633
monochromatic
#2C0A3D #521372 #781CA6 #9E25DA #B559E3

Accessibility & contrast

On white

8.35
#781CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#781CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781CA6
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781CA6#FFFFFF#000000##FFFFFF
##781CA61.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.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: #781ca6;
/* rgb */ color: rgb(120, 28, 166);
/* oklch */ color: oklch(45.0% 0.204 310.6);
Tailwind
colors: {
  custom: {
    50: '#a466c1',
    500: '#781ca6',
    950: '#000000',
  },
}
SCSS
$custom: #781ca6;
$custom-light: #a466c1;
$custom-dark: #000000;
JSON
{
  "hex": "#781ca6",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 280,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45001,
    "c": 0.20405,
    "h": 310.6
  },
  "luminance": 0.07577
}

Semantic roles & 50–950 ramp

primary
#781CA6
secondary
#7CC757
accent
#EE3A76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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