#781A83#781A83

#781A83 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.176 H 323.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#781A83
RGBrgb(120, 26, 131)
HSLhsl(294, 67%, 31%)
HSVhsv(294, 80%, 51%)
CMYKcmyk(8.4%, 80.2%, 0%, 48.6%)
CIE-LABlab(30.33, 52.60, -37.58)
CIE-LCHlch(30.33, 64.64, 324.46°)
OKLaboklab(42.26% 0.1407 -0.105)
OKLCHoklch(42.26% 0.176 323.3)
XYZxyz(12.2115, 6.3713, 22.0549)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A83 #25831A
analogous
#431A83 #781A83 #831A59
triadic
#781A83 #83781A #1A8378
tetradic
#781A83 #83431A #25831A #1A5983
square
#781A83 #83431A #25831A #1A5983
split-complementary
#781A83 #59831A #1A8343
monochromatic
#1A061D #491050 #781A83 #A724B6 #C93FD9

Accessibility & contrast

On white

9.23
#781A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A83
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A83#FFFFFF#000000##FFFFFF
##781A831.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#2D4B81
Tritanopia (blue-blind)
#7A2F4E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781a83;
/* rgb */ color: rgb(120, 26, 131);
/* oklch */ color: oklch(42.3% 0.176 323.3);
Tailwind
colors: {
  custom: {
    50: '#a363a7',
    500: '#781a83',
    950: '#000000',
  },
}
SCSS
$custom: #781a83;
$custom-light: #a363a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781a83",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 293.714,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42263,
    "c": 0.17555,
    "h": 323.3
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

primary
#781A83
secondary
#4EB742
accent
#EA3E50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A83

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

Preview Lab → · Contrast checker → · Palette generator →

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