#781E98#781E98

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

Color values

HEX#781E98
RGBrgb(120, 30, 152)
HSLhsl(284, 67%, 36%)
HSVhsv(284, 80%, 60%)
CMYKcmyk(21.1%, 80.3%, 0%, 40.4%)
CIE-LABlab(32.23, 55.38, -47.49)
CIE-LCHlch(32.23, 72.95, 319.38°)
OKLaboklab(44.07% 0.1343 -0.1341)
OKLCHoklch(44.07% 0.19 315)
XYZxyz(13.8766, 7.1891, 30.3564)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E98 #3E981E
analogous
#3B1E98 #781E98 #981E7B
triadic
#781E98 #98781E #1E9878
tetradic
#781E98 #983B1E #3E981E #1E7B98
square
#781E98 #983B1E #3E981E #1E7B98
split-complementary
#781E98 #7B981E #1E983B
monochromatic
#270A32 #501465 #781E98 #A028CB #B953DD

Accessibility & contrast

On white

8.61
#781E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781E98
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E98#FFFFFF#000000##FFFFFF
##781E981.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#174E95
Tritanopia (blue-blind)
#753B5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781e98;
/* rgb */ color: rgb(120, 30, 152);
/* oklch */ color: oklch(44.1% 0.190 315.0);
Tailwind
colors: {
  custom: {
    50: '#a366b7',
    500: '#781e98',
    950: '#000000',
  },
}
SCSS
$custom: #781e98;
$custom-light: #a366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#781e98",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 284.262,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4407,
    "c": 0.18982,
    "h": 315
  },
  "luminance": 0.07189
}

Semantic roles & 50–950 ramp

primary
#781E98
secondary
#6FC051
accent
#EA3E6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781E98

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

Preview Lab → · Contrast checker → · Palette generator →

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