#781A8D#781A8D

#781A8D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.184 H 319.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#781A8D
RGBrgb(120, 26, 141)
HSLhsl(289, 69%, 33%)
HSVhsv(289, 82%, 55%)
CMYKcmyk(14.9%, 81.6%, 0%, 44.7%)
CIE-LABlab(31.01, 54.47, -42.71)
CIE-LCHlch(31.01, 69.22, 321.90°)
OKLaboklab(42.96% 0.1394 -0.12)
OKLCHoklch(42.96% 0.184 319.3)
XYZxyz(12.9222, 6.6556, 25.7981)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A8D #2F8D1A
analogous
#3E1A8D #781A8D #8D1A69
triadic
#781A8D #8D781A #1A8D78
tetradic
#781A8D #8D3E1A #2F8D1A #1A698D
square
#781A8D #8D3E1A #2F8D1A #1A698D
split-complementary
#781A8D #698D1A #1A8D3E
monochromatic
#200726 #4C1059 #781A8D #A424C1 #C145DD

Accessibility & contrast

On white

9.01
#781A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A8D
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A8D#FFFFFF#000000##FFFFFF
##781A8D1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#234C8B
Tritanopia (blue-blind)
#783454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781a8d;
/* rgb */ color: rgb(120, 26, 141);
/* oklch */ color: oklch(43.0% 0.184 319.3);
Tailwind
colors: {
  custom: {
    50: '#a363af',
    500: '#781a8d',
    950: '#000000',
  },
}
SCSS
$custom: #781a8d;
$custom-light: #a363af;
$custom-dark: #000000;
JSON
{
  "hex": "#781a8d",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 289.043,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42959,
    "c": 0.18399,
    "h": 319.3
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#781A8D
secondary
#5BBE45
accent
#EC3C5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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