#781C98#781C98

#781C98 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.192 H 315.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#781C98
RGBrgb(120, 28, 152)
HSLhsl(285, 69%, 35%)
HSVhsv(285, 82%, 60%)
CMYKcmyk(21.1%, 81.6%, 0%, 40.4%)
CIE-LABlab(32.01, 56.02, -47.85)
CIE-LCHlch(32.01, 73.67, 319.49°)
OKLaboklab(43.92% 0.1359 -0.1351)
OKLCHoklch(43.92% 0.192 315.2)
XYZxyz(13.8275, 7.0911, 30.3400)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C98 #3C981C
analogous
#3A1C98 #781C98 #981C7A
triadic
#781C98 #98781C #1C9878
tetradic
#781C98 #983A1C #3C981C #1C7A98
square
#781C98 #983A1C #3C981C #1C7A98
split-complementary
#781C98 #7A981C #1C983A
monochromatic
#260931 #4F1264 #781C98 #A126CC #BA50DF

Accessibility & contrast

On white

8.68
#781C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#781C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C98
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C98#FFFFFF#000000##FFFFFF
##781C981.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#154E95
Tritanopia (blue-blind)
#753A5B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781c98;
/* rgb */ color: rgb(120, 28, 152);
/* oklch */ color: oklch(43.9% 0.192 315.2);
Tailwind
colors: {
  custom: {
    50: '#a365b7',
    500: '#781c98',
    950: '#000000',
  },
}
SCSS
$custom: #781c98;
$custom-light: #a365b7;
$custom-dark: #000000;
JSON
{
  "hex": "#781c98",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 284.516,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43915,
    "c": 0.19168,
    "h": 315.2
  },
  "luminance": 0.07091
}

Semantic roles & 50–950 ramp

primary
#781C98
secondary
#6CC14E
accent
#EC3C69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781C98

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

Preview Lab → · Contrast checker → · Palette generator →

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