#781F99#781F99

#781F99 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.190 H 314.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#781F99
RGBrgb(120, 31, 153)
HSLhsl(284, 66%, 36%)
HSVhsv(284, 80%, 60%)
CMYKcmyk(21.6%, 79.7%, 0%, 40%)
CIE-LABlab(32.42, 55.25, -47.80)
CIE-LCHlch(32.42, 73.06, 319.13°)
OKLaboklab(44.22% 0.1333 -0.135)
OKLCHoklch(44.22% 0.19 314.6)
XYZxyz(13.9845, 7.2735, 30.7981)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F99 #40991F
analogous
#3B1F99 #781F99 #991F7D
triadic
#781F99 #99781F #1F9978
tetradic
#781F99 #993B1F #40991F #1F7D99
square
#781F99 #993B1F #40991F #1F7D99
split-complementary
#781F99 #7D991F #1F993B
monochromatic
#280A33 #501566 #781F99 #A029CC #B856DD

Accessibility & contrast

On white

8.56
#781F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#781F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F99
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F99#FFFFFF#000000##FFFFFF
##781F991.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#164E96
Tritanopia (blue-blind)
#753C5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781f99;
/* rgb */ color: rgb(120, 31, 153);
/* oklch */ color: oklch(44.2% 0.190 314.6);
Tailwind
colors: {
  custom: {
    50: '#a366b8',
    500: '#781f99',
    950: '#000000',
  },
}
SCSS
$custom: #781f99;
$custom-light: #a366b8;
$custom-dark: #000000;
JSON
{
  "hex": "#781f99",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 283.77,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44225,
    "c": 0.18976,
    "h": 314.6
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#781F99
secondary
#71C054
accent
#E93F6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F99

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

Preview Lab → · Contrast checker → · Palette generator →

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