#781B84#781B84

#781B84 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.175 H 322.8°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#781B84
RGBrgb(120, 27, 132)
HSLhsl(293, 66%, 31%)
HSVhsv(293, 80%, 52%)
CMYKcmyk(9.1%, 79.5%, 0%, 48.2%)
CIE-LABlab(30.51, 52.47, -37.92)
CIE-LCHlch(30.51, 64.74, 324.14°)
OKLaboklab(42.41% 0.1397 -0.106)
OKLCHoklch(42.41% 0.175 322.8)
XYZxyz(12.3021, 6.4436, 22.4211)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B84 #27841B
analogous
#431B84 #781B84 #841B5B
triadic
#781B84 #84781B #1B8478
tetradic
#781B84 #84431B #27841B #1B5B84
square
#781B84 #84431B #27841B #1B5B84
split-complementary
#781B84 #5B841B #1B8443
monochromatic
#1C061E #4A1151 #781B84 #A625B7 #C741D8

Accessibility & contrast

On white

9.18
#781B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B84
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B84#FFFFFF#000000##FFFFFF
##781B841.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#2D4B82
Tritanopia (blue-blind)
#7A304F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781b84;
/* rgb */ color: rgb(120, 27, 132);
/* oklch */ color: oklch(42.4% 0.175 322.8);
Tailwind
colors: {
  custom: {
    50: '#a363a8',
    500: '#781b84',
    950: '#000000',
  },
}
SCSS
$custom: #781b84;
$custom-light: #a363a8;
$custom-dark: #000000;
JSON
{
  "hex": "#781b84",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 293.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42407,
    "c": 0.1754,
    "h": 322.8
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#781B84
secondary
#51B743
accent
#E93F52
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781B84

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

Preview Lab → · Contrast checker → · Palette generator →

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