#781A7F#781A7F

#781A7F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.172 H 324.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#781A7F
RGBrgb(120, 26, 127)
HSLhsl(296, 66%, 30%)
HSVhsv(296, 80%, 50%)
CMYKcmyk(5.5%, 79.5%, 0%, 50.2%)
CIE-LABlab(30.07, 51.87, -35.48)
CIE-LCHlch(30.07, 62.84, 325.62°)
OKLaboklab(42% 0.141 -0.0989)
OKLCHoklch(42% 0.172 324.9)
XYZxyz(11.9456, 6.2650, 20.6546)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A7F #217F1A
analogous
#461A7F #781A7F #7F1A53
triadic
#781A7F #7F781A #1A7F78
tetradic
#781A7F #7F461A #217F1A #1A537F
square
#781A7F #7F461A #217F1A #1A537F
split-complementary
#781A7F #537F1A #1A7F46
monochromatic
#180519 #48104C #781A7F #A824B2 #CC3CD7

Accessibility & contrast

On white

9.32
#781A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A7F
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A7F#FFFFFF#000000##FFFFFF
##781A7F1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#304B7D
Tritanopia (blue-blind)
#7B2D4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781a7f;
/* rgb */ color: rgb(120, 26, 127);
/* oklch */ color: oklch(42.0% 0.172 324.9);
Tailwind
colors: {
  custom: {
    50: '#a263a5',
    500: '#781a7f',
    950: '#000000',
  },
}
SCSS
$custom: #781a7f;
$custom-light: #a263a5;
$custom-dark: #000000;
JSON
{
  "hex": "#781a7f",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 295.842,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.41996,
    "c": 0.17222,
    "h": 324.9
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#781A7F
secondary
#4AB342
accent
#E93F4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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