#781B9F#781B9F

#781B9F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.199 H 312.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#781B9F
RGBrgb(120, 27, 159)
HSLhsl(282, 71%, 36%)
HSVhsv(282, 83%, 62%)
CMYKcmyk(24.5%, 83%, 0%, 37.6%)
CIE-LABlab(32.44, 57.73, -51.43)
CIE-LCHlch(32.44, 77.32, 318.31°)
OKLaboklab(44.38% 0.1352 -0.1456)
OKLCHoklch(44.38% 0.199 312.9)
XYZxyz(14.3945, 7.2806, 33.4412)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B9F #429F1B
analogous
#361B9F #781B9F #9F1B84
triadic
#781B9F #9F781B #1B9F78
tetradic
#781B9F #9F361B #429F1B #1B849F
square
#781B9F #9F361B #429F1B #1B849F
split-complementary
#781B9F #849F1B #1B9F36
monochromatic
#290936 #51126B #781B9F #9F24D3 #B753E2

Accessibility & contrast

On white

8.55
#781B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#781B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B9F
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B9F#FFFFFF#000000##FFFFFF
##781B9F1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#733D5F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781b9f;
/* rgb */ color: rgb(120, 27, 159);
/* oklch */ color: oklch(44.4% 0.199 312.9);
Tailwind
colors: {
  custom: {
    50: '#a465bc',
    500: '#781b9f',
    950: '#000000',
  },
}
SCSS
$custom: #781b9f;
$custom-light: #a465bc;
$custom-dark: #000000;
JSON
{
  "hex": "#781b9f",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 282.273,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44378,
    "c": 0.1987,
    "h": 312.9
  },
  "luminance": 0.0728
}

Semantic roles & 50–950 ramp

primary
#781B9F
secondary
#73C551
accent
#EE3A6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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