#781E7B#781E7B

#781E7B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.165 H 326.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#781E7B
RGBrgb(120, 30, 123)
HSLhsl(298, 61%, 30%)
HSVhsv(298, 76%, 48%)
CMYKcmyk(2.4%, 75.6%, 0%, 51.8%)
CIE-LABlab(30.28, 49.82, -32.62)
CIE-LCHlch(30.28, 59.55, 326.78°)
OKLaboklab(42.07% 0.1375 -0.0906)
OKLCHoklch(42.07% 0.165 326.6)
XYZxyz(11.7849, 6.3525, 19.3405)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E7B #217B1E
analogous
#4A1E7B #781E7B #7B1E4F
triadic
#781E7B #7B781E #1E7B78
tetradic
#781E7B #7B4A1E #217B1E #1E4F7B
square
#781E7B #7B4A1E #217B1E #1E4F7B
split-complementary
#781E7B #4F7B1E #1E7B4A
monochromatic
#180619 #48124A #781E7B #A82AAC #CC42D1

Accessibility & contrast

On white

9.25
#781E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781E7B
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E7B#FFFFFF#000000##FFFFFF
##781E7B1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06407E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#7B2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781e7b;
/* rgb */ color: rgb(120, 30, 123);
/* oklch */ color: oklch(42.1% 0.165 326.6);
Tailwind
colors: {
  custom: {
    50: '#a264a1',
    500: '#781e7b',
    950: '#000000',
  },
}
SCSS
$custom: #781e7b;
$custom-light: #a264a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781e7b",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 298.065,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.42068,
    "c": 0.16464,
    "h": 326.6
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#781E7B
secondary
#4AAE46
accent
#E44449
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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