#781E9F#781E9F

#781E9F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.196 H 312.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#781E9F
RGBrgb(120, 30, 159)
HSLhsl(282, 68%, 37%)
HSVhsv(282, 81%, 62%)
CMYKcmyk(24.5%, 81.1%, 0%, 37.6%)
CIE-LABlab(32.76, 56.81, -50.91)
CIE-LCHlch(32.76, 76.28, 318.13°)
OKLaboklab(44.6% 0.1329 -0.1441)
OKLCHoklch(44.6% 0.196 312.7)
XYZxyz(14.4669, 7.4253, 33.4653)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E9F #459F1E
analogous
#371E9F #781E9F #9F1E86
triadic
#781E9F #9F781E #1E9F78
tetradic
#781E9F #9F371E #459F1E #1E869F
square
#781E9F #9F371E #459F1E #1E869F
split-complementary
#781E9F #869F1E #1E9F37
monochromatic
#2A0B38 #51146C #781E9F #9F28D2 #B658DF

Accessibility & contrast

On white

8.45
#781E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#781E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E9F
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E9F#FFFFFF#000000##FFFFFF
##781E9F1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#044F9C
Tritanopia (blue-blind)
#733E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781e9f;
/* rgb */ color: rgb(120, 30, 159);
/* oklch */ color: oklch(44.6% 0.196 312.7);
Tailwind
colors: {
  custom: {
    50: '#a466bc',
    500: '#781e9f',
    950: '#000000',
  },
}
SCSS
$custom: #781e9f;
$custom-light: #a466bc;
$custom-dark: #000000;
JSON
{
  "hex": "#781e9f",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 281.86,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44601,
    "c": 0.19607,
    "h": 312.7
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#781E9F
secondary
#77C356
accent
#EB3D71
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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