#781C83#781C83

#781C83 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.174 H 323.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#781C83
RGBrgb(120, 28, 131)
HSLhsl(294, 65%, 31%)
HSVhsv(294, 79%, 51%)
CMYKcmyk(8.4%, 78.6%, 0%, 48.6%)
CIE-LABlab(30.55, 51.96, -37.22)
CIE-LCHlch(30.55, 63.92, 324.38°)
OKLaboklab(42.42% 0.1389 -0.104)
OKLCHoklch(42.42% 0.174 323.2)
XYZxyz(12.2573, 6.4630, 22.0702)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C83 #27831C
analogous
#441C83 #781C83 #831C5A
triadic
#781C83 #83781C #1C8378
tetradic
#781C83 #83441C #27831C #1C5A83
square
#781C83 #83441C #27831C #1C5A83
split-complementary
#781C83 #5A831C #1C8344
monochromatic
#1C061E #4A1151 #781C83 #A627B5 #C743D7

Accessibility & contrast

On white

9.16
#781C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C83
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C83#FFFFFF#000000##FFFFFF
##781C831.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#2E4B81
Tritanopia (blue-blind)
#7A304F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781c83;
/* rgb */ color: rgb(120, 28, 131);
/* oklch */ color: oklch(42.4% 0.174 323.2);
Tailwind
colors: {
  custom: {
    50: '#a264a7',
    500: '#781c83',
    950: '#000000',
  },
}
SCSS
$custom: #781c83;
$custom-light: #a264a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781c83",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 293.592,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4242,
    "c": 0.17354,
    "h": 323.2
  },
  "luminance": 0.06462
}

Semantic roles & 50–950 ramp

primary
#781C83
secondary
#51B645
accent
#E84052
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C83

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

Preview Lab → · Contrast checker → · Palette generator →

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