#781D98#781D98

#781D98 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.191 H 315.1°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#781D98
RGBrgb(120, 29, 152)
HSLhsl(284, 68%, 35%)
HSVhsv(284, 81%, 60%)
CMYKcmyk(21.1%, 80.9%, 0%, 40.4%)
CIE-LABlab(32.12, 55.70, -47.67)
CIE-LCHlch(32.12, 73.32, 319.44°)
OKLaboklab(43.99% 0.1351 -0.1346)
OKLCHoklch(43.99% 0.191 315.1)
XYZxyz(13.8517, 7.1393, 30.3481)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D98 #3D981D
analogous
#3A1D98 #781D98 #981D7A
triadic
#781D98 #98781D #1D9878
tetradic
#781D98 #983A1D #3D981D #1D7A98
square
#781D98 #983A1D #3D981D #1D7A98
split-complementary
#781D98 #7A981D #1D983A
monochromatic
#270931 #4F1365 #781D98 #A127CB #B952DE

Accessibility & contrast

On white

8.65
#781D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D98
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D98#FFFFFF#000000##FFFFFF
##781D981.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#164E95
Tritanopia (blue-blind)
#753B5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781d98;
/* rgb */ color: rgb(120, 29, 152);
/* oklch */ color: oklch(44.0% 0.191 315.1);
Tailwind
colors: {
  custom: {
    50: '#a365b7',
    500: '#781d98',
    950: '#000000',
  },
}
SCSS
$custom: #781d98;
$custom-light: #a365b7;
$custom-dark: #000000;
JSON
{
  "hex": "#781d98",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 284.39,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43991,
    "c": 0.19076,
    "h": 315.1
  },
  "luminance": 0.07139
}

Semantic roles & 50–950 ramp

primary
#781D98
secondary
#6DC150
accent
#EB3D6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781D98

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

Preview Lab → · Contrast checker → · Palette generator →

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