#781F84#781F84

#781F84 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.171 H 322.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#781F84
RGBrgb(120, 31, 132)
HSLhsl(293, 62%, 32%)
HSVhsv(293, 77%, 52%)
CMYKcmyk(9.1%, 76.5%, 0%, 48.2%)
CIE-LABlab(30.97, 51.12, -37.17)
CIE-LCHlch(30.97, 63.21, 323.98°)
OKLaboklab(42.74% 0.1361 -0.1039)
OKLCHoklch(42.74% 0.171 322.6)
XYZxyz(12.4002, 6.6397, 22.4538)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F84 #2B841F
analogous
#461F84 #781F84 #841F5E
triadic
#781F84 #84781F #1F8478
tetradic
#781F84 #84461F #2B841F #1F5E84
square
#781F84 #84461F #2B841F #1F5E84
split-complementary
#781F84 #5E841F #1F8446
monochromatic
#1E0821 #4B1352 #781F84 #A52BB6 #C449D4

Accessibility & contrast

On white

9.02
#781F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F84
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F84#FFFFFF#000000##FFFFFF
##781F841.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#2F4C82
Tritanopia (blue-blind)
#7A3250
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781f84;
/* rgb */ color: rgb(120, 31, 132);
/* oklch */ color: oklch(42.7% 0.171 322.6);
Tailwind
colors: {
  custom: {
    50: '#a265a8',
    500: '#781f84',
    950: '#000000',
  },
}
SCSS
$custom: #781f84;
$custom-light: #a265a8;
$custom-dark: #000000;
JSON
{
  "hex": "#781f84",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 292.871,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42739,
    "c": 0.1712,
    "h": 322.6
  },
  "luminance": 0.06639
}

Semantic roles & 50–950 ramp

primary
#781F84
secondary
#55B748
accent
#E54356
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F84

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

Preview Lab → · Contrast checker → · Palette generator →

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