#781F89#781F89

#781F89 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.176 H 320.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#781F89
RGBrgb(120, 31, 137)
HSLhsl(290, 63%, 33%)
HSVhsv(290, 77%, 54%)
CMYKcmyk(12.4%, 77.4%, 0%, 46.3%)
CIE-LABlab(31.30, 52.08, -39.76)
CIE-LCHlch(31.30, 65.52, 322.64°)
OKLaboklab(43.08% 0.1356 -0.1114)
OKLCHoklch(43.08% 0.176 320.6)
XYZxyz(12.7505, 6.7799, 24.2991)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F89 #30891F
analogous
#431F89 #781F89 #891F65
triadic
#781F89 #89781F #1F8978
tetradic
#781F89 #89431F #30891F #1F6589
square
#781F89 #89431F #30891F #1F6589
split-complementary
#781F89 #65891F #1F8943
monochromatic
#210825 #4C1457 #781F89 #A42ABB #C04CD6

Accessibility & contrast

On white

8.91
#781F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#781F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F89
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F89#FFFFFF#000000##FFFFFF
##781F891.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#2B4D87
Tritanopia (blue-blind)
#793453
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781f89;
/* rgb */ color: rgb(120, 31, 137);
/* oklch */ color: oklch(43.1% 0.176 320.6);
Tailwind
colors: {
  custom: {
    50: '#a365ac',
    500: '#781f89',
    950: '#000000',
  },
}
SCSS
$custom: #781f89;
$custom-light: #a365ac;
$custom-dark: #000000;
JSON
{
  "hex": "#781f89",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 290.377,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43077,
    "c": 0.17555,
    "h": 320.6
  },
  "luminance": 0.06779
}

Semantic roles & 50–950 ramp

primary
#781F89
secondary
#5CB94B
accent
#E6425C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F89

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

Preview Lab → · Contrast checker → · Palette generator →

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