#781981#781981

#781981 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.175 H 324.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#781981
RGBrgb(120, 25, 129)
HSLhsl(295, 68%, 30%)
HSVhsv(295, 81%, 51%)
CMYKcmyk(7%, 80.6%, 0%, 49.4%)
CIE-LABlab(30.09, 52.54, -36.70)
CIE-LCHlch(30.09, 64.09, 325.06°)
OKLaboklab(42.05% 0.1417 -0.1025)
OKLCHoklch(42.05% 0.175 324.1)
XYZxyz(12.0555, 6.2741, 21.3407)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781981 #228119
analogous
#441981 #781981 #811956
triadic
#781981 #817819 #198178
tetradic
#781981 #814419 #228119 #195681
square
#781981 #814419 #228119 #195681
split-complementary
#781981 #568119 #198144
monochromatic
#19051A #480F4E #781981 #A823B4 #CB3BD9

Accessibility & contrast

On white

9.31
#781981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781981
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781981#FFFFFF#000000##FFFFFF
##7819811.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#2E4B7F
Tritanopia (blue-blind)
#7A2D4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781981;
/* rgb */ color: rgb(120, 25, 129);
/* oklch */ color: oklch(42.1% 0.175 324.1);
Tailwind
colors: {
  custom: {
    50: '#a363a6',
    500: '#781981',
    950: '#000000',
  },
}
SCSS
$custom: #781981;
$custom-light: #a363a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781981",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 294.808,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42053,
    "c": 0.17485,
    "h": 324.1
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#781981
secondary
#4BB541
accent
#EA3D4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781981

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

Preview Lab → · Contrast checker → · Palette generator →

#781981 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva