#7B1A7D#7B1A7D

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

Color values

HEX#7B1A7D
RGBrgb(123, 26, 125)
HSLhsl(299, 66%, 30%)
HSVhsv(299, 79%, 49%)
CMYKcmyk(1.6%, 79.2%, 0%, 51%)
CIE-LABlab(30.48, 52.16, -33.55)
CIE-LCHlch(30.48, 62.02, 327.25°)
OKLaboklab(42.35% 0.1446 -0.0932)
OKLCHoklch(42.35% 0.172 327.2)
XYZxyz(12.2393, 6.4313, 19.9948)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A7D #1C7D1A
analogous
#4A1A7D #7B1A7D #7D1A4E
triadic
#7B1A7D #7D7B1A #1A7D7B
tetradic
#7B1A7D #7D4A1A #1C7D1A #1A4E7D
square
#7B1A7D #7D4A1A #1C7D1A #1A4E7D
split-complementary
#7B1A7D #4E7D1A #1A7D4A
monochromatic
#190519 #490F4A #7B1A7D #AD25B0 #D33BD6

Accessibility & contrast

On white

9.19
#7B1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A7D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A7D#FFFFFF#000000##FFFFFF
##7B1A7D1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7F2B4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1a7d;
/* rgb */ color: rgb(123, 26, 125);
/* oklch */ color: oklch(42.3% 0.172 327.2);
Tailwind
colors: {
  custom: {
    50: '#a563a3',
    500: '#7b1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a7d;
$custom-light: #a563a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a7d",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 298.788,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42345,
    "c": 0.17199,
    "h": 327.2
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#7B1A7D
secondary
#44B142
accent
#E93F43
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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