#781F91#781F91

#781F91 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.183 H 317.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#781F91
RGBrgb(120, 31, 145)
HSLhsl(287, 65%, 35%)
HSVhsv(287, 79%, 57%)
CMYKcmyk(17.2%, 78.6%, 0%, 43.1%)
CIE-LABlab(31.85, 53.64, -43.82)
CIE-LCHlch(31.85, 69.27, 320.75°)
OKLaboklab(43.64% 0.1347 -0.1234)
OKLCHoklch(43.64% 0.183 317.5)
XYZxyz(13.3458, 7.0180, 27.4342)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F91 #38911F
analogous
#3F1F91 #781F91 #911F71
triadic
#781F91 #91781F #1F9178
tetradic
#781F91 #913F1F #38911F #1F7191
square
#781F91 #913F1F #38911F #1F7191
split-complementary
#781F91 #71911F #1F913F
monochromatic
#25092C #4E145F #781F91 #A22AC3 #BC51DA

Accessibility & contrast

On white

8.74
#781F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#781F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F91
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F91#FFFFFF#000000##FFFFFF
##781F911.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#224E8F
Tritanopia (blue-blind)
#773857
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781f91;
/* rgb */ color: rgb(120, 31, 145);
/* oklch */ color: oklch(43.6% 0.183 317.5);
Tailwind
colors: {
  custom: {
    50: '#a366b2',
    500: '#781f91',
    950: '#000000',
  },
}
SCSS
$custom: #781f91;
$custom-light: #a366b2;
$custom-dark: #000000;
JSON
{
  "hex": "#781f91",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 286.842,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.18262,
    "h": 317.5
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#781F91
secondary
#67BD4F
accent
#E84065
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F91

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

Preview Lab → · Contrast checker → · Palette generator →

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