#781BA1#781BA1

#781BA1 is a dark, highly saturated purple. Relative luminance 0.073; OKLCH L 44.5% C 0.200 H 312.2°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#781BA1
RGBrgb(120, 27, 161)
HSLhsl(282, 71%, 37%)
HSVhsv(282, 83%, 63%)
CMYKcmyk(25.5%, 83.2%, 0%, 36.9%)
CIE-LABlab(32.59, 58.14, -52.39)
CIE-LCHlch(32.59, 78.26, 317.98°)
OKLaboklab(44.53% 0.1347 -0.1485)
OKLCHoklch(44.53% 0.2 312.2)
XYZxyz(14.5695, 7.3506, 34.3626)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781BA1 #44A11B
analogous
#351BA1 #781BA1 #A11B87
triadic
#781BA1 #A1781B #1BA178
tetradic
#781BA1 #A1351B #44A11B #1B87A1
square
#781BA1 #A1351B #44A11B #1B87A1
split-complementary
#781BA1 #87A11B #1BA135
monochromatic
#2A0938 #51126D #781BA1 #9F24D5 #B754E2

Accessibility & contrast

On white

8.50
#781BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#781BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781BA1
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781BA1#FFFFFF#000000##FFFFFF
##781BA11.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#004E9E
Tritanopia (blue-blind)
#733E60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781ba1;
/* rgb */ color: rgb(120, 27, 161);
/* oklch */ color: oklch(44.5% 0.200 312.2);
Tailwind
colors: {
  custom: {
    50: '#a465be',
    500: '#781ba1',
    950: '#000000',
  },
}
SCSS
$custom: #781ba1;
$custom-light: #a465be;
$custom-dark: #000000;
JSON
{
  "hex": "#781ba1",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 281.642,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44534,
    "c": 0.20046,
    "h": 312.2
  },
  "luminance": 0.0735
}

Semantic roles & 50–950 ramp

primary
#781BA1
secondary
#76C552
accent
#EE3A71
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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