#781B9C#781B9C

#781B9C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.196 H 313.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#781B9C
RGBrgb(120, 27, 156)
HSLhsl(283, 70%, 36%)
HSVhsv(283, 83%, 61%)
CMYKcmyk(23.1%, 82.7%, 0%, 38.8%)
CIE-LABlab(32.21, 57.13, -49.97)
CIE-LCHlch(32.21, 75.90, 318.82°)
OKLaboklab(44.15% 0.1358 -0.1414)
OKLCHoklch(44.15% 0.196 313.9)
XYZxyz(14.1374, 7.1777, 32.0868)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B9C #3F9C1B
analogous
#371B9C #781B9C #9C1B7F
triadic
#781B9C #9C781B #1B9C78
tetradic
#781B9C #9C371B #3F9C1B #1B7F9C
square
#781B9C #9C371B #3F9C1B #1B7F9C
split-complementary
#781B9C #7F9C1B #1B9C37
monochromatic
#280934 #501268 #781B9C #A024D0 #B951E1

Accessibility & contrast

On white

8.62
#781B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#781B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B9C
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B9C#FFFFFF#000000##FFFFFF
##781B9C1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#094E99
Tritanopia (blue-blind)
#743C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781b9c;
/* rgb */ color: rgb(120, 27, 156);
/* oklch */ color: oklch(44.1% 0.196 313.9);
Tailwind
colors: {
  custom: {
    50: '#a465ba',
    500: '#781b9c',
    950: '#000000',
  },
}
SCSS
$custom: #781b9c;
$custom-light: #a465ba;
$custom-dark: #000000;
JSON
{
  "hex": "#781b9c",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 283.256,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44146,
    "c": 0.19607,
    "h": 313.9
  },
  "luminance": 0.07177
}

Semantic roles & 50–950 ramp

primary
#781B9C
secondary
#70C34F
accent
#ED3B6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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