#781B85#781B85

#781B85 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.176 H 322.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#781B85
RGBrgb(120, 27, 133)
HSLhsl(293, 66%, 31%)
HSVhsv(293, 80%, 52%)
CMYKcmyk(9.8%, 79.7%, 0%, 47.8%)
CIE-LABlab(30.57, 52.65, -38.44)
CIE-LCHlch(30.57, 65.19, 323.87°)
OKLaboklab(42.48% 0.1396 -0.1075)
OKLCHoklch(42.48% 0.176 322.4)
XYZxyz(12.3709, 6.4711, 22.7832)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B85 #28851B
analogous
#431B85 #781B85 #851B5D
triadic
#781B85 #85781B #1B8578
tetradic
#781B85 #85431B #28851B #1B5D85
square
#781B85 #85431B #28851B #1B5D85
split-complementary
#781B85 #5D851B #1B8543
monochromatic
#1C061F #4A1152 #781B85 #A625B8 #C642D9

Accessibility & contrast

On white

9.15
#781B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B85
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B85#FFFFFF#000000##FFFFFF
##781B851.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#2C4B83
Tritanopia (blue-blind)
#7A3050
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781b85;
/* rgb */ color: rgb(120, 27, 133);
/* oklch */ color: oklch(42.5% 0.176 322.4);
Tailwind
colors: {
  custom: {
    50: '#a363a9',
    500: '#781b85',
    950: '#000000',
  },
}
SCSS
$custom: #781b85;
$custom-light: #a363a9;
$custom-dark: #000000;
JSON
{
  "hex": "#781b85",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 292.642,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42475,
    "c": 0.17624,
    "h": 322.4
  },
  "luminance": 0.0647
}

Semantic roles & 50–950 ramp

primary
#781B85
secondary
#52B844
accent
#E93F54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781B85

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

Preview Lab → · Contrast checker → · Palette generator →

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