#781A98#781A98

#781A98 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.193 H 315.3°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#781A98
RGBrgb(120, 26, 152)
HSLhsl(285, 71%, 35%)
HSVhsv(285, 83%, 60%)
CMYKcmyk(21.1%, 82.9%, 0%, 40.4%)
CIE-LABlab(31.81, 56.62, -48.19)
CIE-LCHlch(31.81, 74.35, 319.60°)
OKLaboklab(43.77% 0.1374 -0.1361)
OKLCHoklch(43.77% 0.193 315.3)
XYZxyz(13.7817, 6.9994, 30.3247)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A98 #3A981A
analogous
#391A98 #781A98 #981A79
triadic
#781A98 #98781A #1A9878
tetradic
#781A98 #98391A #3A981A #1A7998
square
#781A98 #98391A #3A981A #1A7998
split-complementary
#781A98 #79981A #1A9839
monochromatic
#25082F #4F1164 #781A98 #A123CC #BB4CE0

Accessibility & contrast

On white

8.75
#781A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#781A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A98
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A98#FFFFFF#000000##FFFFFF
##781A981.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#134D95
Tritanopia (blue-blind)
#75395B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781a98;
/* rgb */ color: rgb(120, 26, 152);
/* oklch */ color: oklch(43.8% 0.193 315.3);
Tailwind
colors: {
  custom: {
    50: '#a364b7',
    500: '#781a98',
    950: '#000000',
  },
}
SCSS
$custom: #781a98;
$custom-light: #a364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#781a98",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 284.762,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43769,
    "c": 0.19345,
    "h": 315.3
  },
  "luminance": 0.06999
}

Semantic roles & 50–950 ramp

primary
#781A98
secondary
#6AC24B
accent
#EE3A68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781A98

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

Preview Lab → · Contrast checker → · Palette generator →

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