#781F94#781F94

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

Color values

HEX#781F94
RGBrgb(120, 31, 148)
HSLhsl(286, 65%, 35%)
HSVhsv(286, 79%, 58%)
CMYKcmyk(18.9%, 79.1%, 0%, 42%)
CIE-LABlab(32.06, 54.24, -45.33)
CIE-LCHlch(32.06, 70.68, 320.12°)
OKLaboklab(43.86% 0.1342 -0.1278)
OKLCHoklch(43.86% 0.185 316.4)
XYZxyz(13.5802, 7.1117, 28.6686)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F94 #3B941F
analogous
#3D1F94 #781F94 #941F75
triadic
#781F94 #94781F #1F9478
tetradic
#781F94 #943D1F #3B941F #1F7594
square
#781F94 #943D1F #3B941F #1F7594
split-complementary
#781F94 #75941F #1F943D
monochromatic
#260A2F #4F1461 #781F94 #A12AC7 #BA53DB

Accessibility & contrast

On white

8.67
#781F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F94
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F94#FFFFFF#000000##FFFFFF
##781F941.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#1E4E92
Tritanopia (blue-blind)
#763A59
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781f94;
/* rgb */ color: rgb(120, 31, 148);
/* oklch */ color: oklch(43.9% 0.185 316.4);
Tailwind
colors: {
  custom: {
    50: '#a366b4',
    500: '#781f94',
    950: '#000000',
  },
}
SCSS
$custom: #781f94;
$custom-light: #a366b4;
$custom-dark: #000000;
JSON
{
  "hex": "#781f94",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 285.641,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43856,
    "c": 0.18528,
    "h": 316.4
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#781F94
secondary
#6BBE51
accent
#E83F68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F94

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

Preview Lab → · Contrast checker → · Palette generator →

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