#7B1A7C#7B1A7C

#7B1A7C is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.171 H 327.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7B1A7C
RGBrgb(123, 26, 124)
HSLhsl(299, 65%, 29%)
HSVhsv(299, 79%, 49%)
CMYKcmyk(0.8%, 79%, 0%, 51.4%)
CIE-LABlab(30.41, 51.99, -33.02)
CIE-LCHlch(30.41, 61.59, 327.58°)
OKLaboklab(42.28% 0.1446 -0.0916)
OKLCHoklch(42.28% 0.171 327.6)
XYZxyz(12.1757, 6.4059, 19.6600)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A7C #1B7C1A
analogous
#4A1A7C #7B1A7C #7C1A4C
triadic
#7B1A7C #7C7B1A #1A7C7B
tetradic
#7B1A7C #7C4A1A #1B7C1A #1A4C7C
square
#7B1A7C #7C4A1A #1B7C1A #1A4C7C
split-complementary
#7B1A7C #4C7C1A #1A7C4A
monochromatic
#190519 #490F49 #7B1A7C #AD25AF #D43BD6

Accessibility & contrast

On white

9.21
#7B1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1A7C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A7C#FFFFFF#000000##FFFFFF
##7B1A7C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#7F2B4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1a7c;
/* rgb */ color: rgb(123, 26, 124);
/* oklch */ color: oklch(42.3% 0.171 327.6);
Tailwind
colors: {
  custom: {
    50: '#a563a2',
    500: '#7b1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a7c;
$custom-light: #a563a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a7c",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 299.388,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42281,
    "c": 0.17119,
    "h": 327.6
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#7B1A7C
secondary
#43B042
accent
#E84041
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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