#7B1AA1#7B1AA1

#7B1AA1 is a dark, highly saturated purple. Relative luminance 0.075; OKLCH L 44.9% C 0.202 H 313.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7B1AA1
RGBrgb(123, 26, 161)
HSLhsl(283, 72%, 37%)
HSVhsv(283, 84%, 63%)
CMYKcmyk(23.6%, 83.9%, 0%, 36.9%)
CIE-LABlab(32.97, 58.94, -51.75)
CIE-LCHlch(32.97, 78.44, 318.72°)
OKLaboklab(44.89% 0.1394 -0.1465)
OKLCHoklch(44.89% 0.202 313.6)
XYZxyz(14.9697, 7.5235, 34.3749)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1AA1 #40A11A
analogous
#371AA1 #7B1AA1 #A11A84
triadic
#7B1AA1 #A17B1A #1AA17B
tetradic
#7B1AA1 #A1371A #40A11A #1A84A1
square
#7B1AA1 #A1371A #40A11A #1A84A1
split-complementary
#7B1AA1 #84A11A #1AA137
monochromatic
#2A0938 #53116C #7B1AA1 #A323D6 #BA52E3

Accessibility & contrast

On white

8.38
#7B1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7B1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1AA1
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1AA1#FFFFFF#000000##FFFFFF
##7B1AA11.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#01509E
Tritanopia (blue-blind)
#773D60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1aa1;
/* rgb */ color: rgb(123, 26, 161);
/* oklch */ color: oklch(44.9% 0.202 313.6);
Tailwind
colors: {
  custom: {
    50: '#a665be',
    500: '#7b1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1aa1;
$custom-light: #a665be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1aa1",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 283.111,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44893,
    "c": 0.2022,
    "h": 313.6
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#7B1AA1
secondary
#72C651
accent
#EF396C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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