#781B9B#781B9B

#781B9B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.1% C 0.195 H 314.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#781B9B
RGBrgb(120, 27, 155)
HSLhsl(284, 70%, 36%)
HSVhsv(284, 83%, 61%)
CMYKcmyk(22.6%, 82.6%, 0%, 39.2%)
CIE-LABlab(32.13, 56.92, -49.49)
CIE-LCHlch(32.13, 75.43, 319.00°)
OKLaboklab(44.07% 0.1361 -0.14)
OKLCHoklch(44.07% 0.195 314.2)
XYZxyz(14.0530, 7.1440, 31.6427)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B9B #3E9B1B
analogous
#381B9B #781B9B #9B1B7E
triadic
#781B9B #9B781B #1B9B78
tetradic
#781B9B #9B381B #3E9B1B #1B7E9B
square
#781B9B #9B381B #3E9B1B #1B7E9B
split-complementary
#781B9B #7E9B1B #1B9B38
monochromatic
#270933 #501267 #781B9B #A024CF #B950E0

Accessibility & contrast

On white

8.65
#781B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#781B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B9B
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B9B#FFFFFF#000000##FFFFFF
##781B9B1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#0C4E98
Tritanopia (blue-blind)
#753B5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781b9b;
/* rgb */ color: rgb(120, 27, 155);
/* oklch */ color: oklch(44.1% 0.195 314.2);
Tailwind
colors: {
  custom: {
    50: '#a465b9',
    500: '#781b9b',
    950: '#000000',
  },
}
SCSS
$custom: #781b9b;
$custom-light: #a465b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781b9b",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 283.594,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44069,
    "c": 0.1952,
    "h": 314.2
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#781B9B
secondary
#6FC34F
accent
#ED3B6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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