#781C9F#781C9F

#781C9F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.5% C 0.198 H 312.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#781C9F
RGBrgb(120, 28, 159)
HSLhsl(282, 70%, 37%)
HSVhsv(282, 82%, 62%)
CMYKcmyk(24.5%, 82.4%, 0%, 37.6%)
CIE-LABlab(32.54, 57.43, -51.26)
CIE-LCHlch(32.54, 76.98, 318.25°)
OKLaboklab(44.45% 0.1344 -0.1452)
OKLCHoklch(44.45% 0.198 312.8)
XYZxyz(14.4179, 7.3272, 33.4490)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C9F #439F1C
analogous
#361C9F #781C9F #9F1C85
triadic
#781C9F #9F781C #1C9F78
tetradic
#781C9F #9F361C #439F1C #1C859F
square
#781C9F #9F361C #439F1C #1C859F
split-complementary
#781C9F #859F1C #1C9F36
monochromatic
#290A37 #51136B #781C9F #9F25D3 #B754E1

Accessibility & contrast

On white

8.52
#781C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#781C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C9F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C9F#FFFFFF#000000##FFFFFF
##781C9F1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781c9f;
/* rgb */ color: rgb(120, 28, 159);
/* oklch */ color: oklch(44.5% 0.198 312.8);
Tailwind
colors: {
  custom: {
    50: '#a465bc',
    500: '#781c9f',
    950: '#000000',
  },
}
SCSS
$custom: #781c9f;
$custom-light: #a465bc;
$custom-dark: #000000;
JSON
{
  "hex": "#781c9f",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 282.137,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4445,
    "c": 0.19785,
    "h": 312.8
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#781C9F
secondary
#74C453
accent
#ED3B70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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