#781F98#781F98

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

Color values

HEX#781F98
RGBrgb(120, 31, 152)
HSLhsl(284, 66%, 36%)
HSVhsv(284, 80%, 60%)
CMYKcmyk(21.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(32.35, 55.04, -47.31)
CIE-LCHlch(32.35, 72.58, 319.32°)
OKLaboklab(44.15% 0.1335 -0.1336)
OKLCHoklch(44.15% 0.189 315)
XYZxyz(13.9023, 7.2406, 30.3649)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F98 #3F981F
analogous
#3B1F98 #781F98 #981F7B
triadic
#781F98 #98781F #1F9878
tetradic
#781F98 #983B1F #3F981F #1F7B98
square
#781F98 #983B1F #3F981F #1F7B98
split-complementary
#781F98 #7B981F #1F983B
monochromatic
#280A32 #501565 #781F98 #A029CB #B955DC

Accessibility & contrast

On white

8.58
#781F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F98
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F98#FFFFFF#000000##FFFFFF
##781F981.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781f98;
/* rgb */ color: rgb(120, 31, 152);
/* oklch */ color: oklch(44.1% 0.189 315.0);
Tailwind
colors: {
  custom: {
    50: '#a366b7',
    500: '#781f98',
    950: '#000000',
  },
}
SCSS
$custom: #781f98;
$custom-light: #a366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#781f98",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 284.132,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4415,
    "c": 0.18885,
    "h": 315
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#781F98
secondary
#70C053
accent
#E93F6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F98

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

Preview Lab → · Contrast checker → · Palette generator →

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