#781D99#781D99

#781D99 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.192 H 314.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#781D99
RGBrgb(120, 29, 153)
HSLhsl(284, 68%, 36%)
HSVhsv(284, 81%, 60%)
CMYKcmyk(21.6%, 81%, 0%, 40%)
CIE-LABlab(32.20, 55.90, -48.17)
CIE-LCHlch(32.20, 73.79, 319.25°)
OKLaboklab(44.07% 0.1349 -0.1361)
OKLCHoklch(44.07% 0.192 314.8)
XYZxyz(13.9339, 7.1722, 30.7812)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D99 #3E991D
analogous
#3A1D99 #781D99 #991D7C
triadic
#781D99 #99781D #1D9978
tetradic
#781D99 #993A1D #3E991D #1D7C99
square
#781D99 #993A1D #3E991D #1D7C99
split-complementary
#781D99 #7C991D #1D993A
monochromatic
#270932 #501366 #781D99 #A027CC #B952DE

Accessibility & contrast

On white

8.63
#781D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#781D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D99
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D99#FFFFFF#000000##FFFFFF
##781D991.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781d99;
/* rgb */ color: rgb(120, 29, 153);
/* oklch */ color: oklch(44.1% 0.192 314.8);
Tailwind
colors: {
  custom: {
    50: '#a365b8',
    500: '#781d99',
    950: '#000000',
  },
}
SCSS
$custom: #781d99;
$custom-light: #a365b8;
$custom-dark: #000000;
JSON
{
  "hex": "#781d99",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 284.032,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44066,
    "c": 0.19166,
    "h": 314.8
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#781D99
secondary
#6FC151
accent
#EB3D6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781D99

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

Preview Lab → · Contrast checker → · Palette generator →

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