#781581#781581

#781581 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.8% C 0.178 H 324.2°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#781581
RGBrgb(120, 21, 129)
HSLhsl(295, 72%, 29%)
HSVhsv(295, 84%, 51%)
CMYKcmyk(7%, 83.7%, 0%, 49.4%)
CIE-LABlab(29.70, 53.68, -37.33)
CIE-LCHlch(29.70, 65.38, 325.18°)
OKLaboklab(41.78% 0.1448 -0.1043)
OKLCHoklch(41.78% 0.178 324.2)
XYZxyz(11.9760, 6.1152, 21.3142)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781581 #1E8115
analogous
#421581 #781581 #811554
triadic
#781581 #817815 #158178
tetradic
#781581 #814215 #1E8115 #155481
square
#781581 #814215 #1E8115 #155481
split-complementary
#781581 #548115 #158142
monochromatic
#18041A #470C4C #781581 #A91EB6 #CF33DE

Accessibility & contrast

On white

9.45
#781581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#781581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781581
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781581#FFFFFF#000000##FFFFFF
##7815811.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#2C4A7F
Tritanopia (blue-blind)
#7A2B4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781581;
/* rgb */ color: rgb(120, 21, 129);
/* oklch */ color: oklch(41.8% 0.178 324.2);
Tailwind
colors: {
  custom: {
    50: '#a361a6',
    500: '#781581',
    950: '#000000',
  },
}
SCSS
$custom: #781581;
$custom-light: #a361a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781581",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 295,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41775,
    "c": 0.17844,
    "h": 324.2
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#781581
secondary
#46B63C
accent
#EF3948
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #781581

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

Preview Lab → · Contrast checker → · Palette generator →

#781581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva