#7A1781#7A1781

#7A1781 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.178 H 325.1°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7A1781
RGBrgb(122, 23, 129)
HSLhsl(296, 70%, 30%)
HSVhsv(296, 82%, 51%)
CMYKcmyk(5.4%, 82.2%, 0%, 49.4%)
CIE-LABlab(30.25, 53.54, -36.44)
CIE-LCHlch(30.25, 64.76, 325.76°)
OKLaboklab(42.23% 0.1456 -0.1016)
OKLCHoklch(42.23% 0.178 325.1)
XYZxyz(12.2946, 6.3362, 21.3401)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1781 #1E8117
analogous
#451781 #7A1781 #811753
triadic
#7A1781 #817A17 #17817A
tetradic
#7A1781 #814517 #1E8117 #175381
square
#7A1781 #814517 #1E8117 #175381
split-complementary
#7A1781 #538117 #178145
monochromatic
#19051A #490E4D #7A1781 #AB20B5 #D137DB

Accessibility & contrast

On white

9.26
#7A1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7A1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1781
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1781#FFFFFF#000000##FFFFFF
##7A17811.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a1781;
/* rgb */ color: rgb(122, 23, 129);
/* oklch */ color: oklch(42.2% 0.178 325.1);
Tailwind
colors: {
  custom: {
    50: '#a462a6',
    500: '#7a1781',
    950: '#000000',
  },
}
SCSS
$custom: #7a1781;
$custom-light: #a462a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1781",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 296.038,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42228,
    "c": 0.17758,
    "h": 325.1
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#7A1781
secondary
#46B53E
accent
#ED3B47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1781

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

Preview Lab → · Contrast checker → · Palette generator →

#7A1781 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva