#781F9B#781F9B

#781F9B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.192 H 313.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#781F9B
RGBrgb(120, 31, 155)
HSLhsl(283, 67%, 36%)
HSVhsv(283, 80%, 61%)
CMYKcmyk(22.6%, 80%, 0%, 39.2%)
CIE-LABlab(32.57, 55.66, -48.78)
CIE-LCHlch(32.57, 74.01, 318.77°)
OKLaboklab(44.38% 0.1329 -0.1379)
OKLCHoklch(44.38% 0.192 313.9)
XYZxyz(14.1511, 7.3401, 31.6753)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F9B #429B1F
analogous
#3A1F9B #781F9B #9B1F80
triadic
#781F9B #9B781F #1F9B78
tetradic
#781F9B #9B3A1F #429B1F #1F809B
square
#781F9B #9B3A1F #429B1F #1F809B
split-complementary
#781F9B #809B1F #1F9B3A
monochromatic
#290B35 #511568 #781F9B #9F29CE #B757DD

Accessibility & contrast

On white

8.51
#781F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#781F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F9B
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F9B#FFFFFF#000000##FFFFFF
##781F9B1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#124F98
Tritanopia (blue-blind)
#743D5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781f9b;
/* rgb */ color: rgb(120, 31, 155);
/* oklch */ color: oklch(44.4% 0.192 313.9);
Tailwind
colors: {
  custom: {
    50: '#a366b9',
    500: '#781f9b',
    950: '#000000',
  },
}
SCSS
$custom: #781f9b;
$custom-light: #a366b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781f9b",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 283.065,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44375,
    "c": 0.19155,
    "h": 313.9
  },
  "luminance": 0.0734
}

Semantic roles & 50–950 ramp

primary
#781F9B
secondary
#73C155
accent
#EA3E6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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