#7A1581#7A1581

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

Color values

HEX#7A1581
RGBrgb(122, 21, 129)
HSLhsl(296, 72%, 29%)
HSVhsv(296, 84%, 51%)
CMYKcmyk(5.4%, 83.7%, 0%, 49.4%)
CIE-LABlab(30.06, 54.08, -36.74)
CIE-LCHlch(30.06, 65.38, 325.81°)
OKLaboklab(42.1% 0.1471 -0.1025)
OKLCHoklch(42.1% 0.179 325.1)
XYZxyz(12.2564, 6.2597, 21.3273)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1581 #1C8115
analogous
#441581 #7A1581 #811552
triadic
#7A1581 #817A15 #15817A
tetradic
#7A1581 #814415 #1C8115 #155281
square
#7A1581 #814415 #1C8115 #155281
split-complementary
#7A1581 #528115 #158144
monochromatic
#19041A #480C4C #7A1581 #AC1EB6 #D333DE

Accessibility & contrast

On white

9.33
#7A1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7A1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1581
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1581#FFFFFF#000000##FFFFFF
##7A15811.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#2F4B7F
Tritanopia (blue-blind)
#7D2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1581;
/* rgb */ color: rgb(122, 21, 129);
/* oklch */ color: oklch(42.1% 0.179 325.1);
Tailwind
colors: {
  custom: {
    50: '#a461a6',
    500: '#7a1581',
    950: '#000000',
  },
}
SCSS
$custom: #7a1581;
$custom-light: #a461a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1581",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 296.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42096,
    "c": 0.17929,
    "h": 325.1
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#7A1581
secondary
#44B63C
accent
#EF3945
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1581

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

Preview Lab → · Contrast checker → · Palette generator →

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