#7B1A7B#7B1A7B

#7B1A7B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.170 H 328.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7B1A7B
RGBrgb(123, 26, 123)
HSLhsl(300, 65%, 29%)
HSVhsv(300, 79%, 48%)
CMYKcmyk(0%, 78.9%, 0%, 51.8%)
CIE-LABlab(30.35, 51.82, -32.48)
CIE-LCHlch(30.35, 61.16, 327.92°)
OKLaboklab(42.22% 0.1446 -0.0901)
OKLCHoklch(42.22% 0.17 328.1)
XYZxyz(12.1128, 6.3807, 19.3287)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A7B #1A7B1A
analogous
#4B1A7B #7B1A7B #7B1A4B
triadic
#7B1A7B #7B7B1A #1A7B7B
tetradic
#7B1A7B #7B4B1A #1A7B1A #1A4B7B
square
#7B1A7B #7B4B1A #1A7B1A #1A4B7B
split-complementary
#7B1A7B #4B7B1A #1A7B4B
monochromatic
#190519 #480F48 #7B1A7B #AE25AE #D53AD5

Accessibility & contrast

On white

9.23
#7B1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A7B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A7B#FFFFFF#000000##FFFFFF
##7B1A7B1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023F7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7F2A4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1a7b;
/* rgb */ color: rgb(123, 26, 123);
/* oklch */ color: oklch(42.2% 0.170 328.1);
Tailwind
colors: {
  custom: {
    50: '#a563a1',
    500: '#7b1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a7b;
$custom-light: #a563a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a7b",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.17039,
    "h": 328.1
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#7B1A7B
secondary
#42AF42
accent
#E84040
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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