#7B1A7A#7B1A7A

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

Color values

HEX#7B1A7A
RGBrgb(123, 26, 122)
HSLhsl(301, 65%, 29%)
HSVhsv(301, 79%, 48%)
CMYKcmyk(0%, 78.9%, 0.8%, 51.8%)
CIE-LABlab(30.29, 51.65, -31.95)
CIE-LCHlch(30.29, 60.73, 328.26°)
OKLaboklab(42.16% 0.1447 -0.0885)
OKLCHoklch(42.16% 0.17 328.5)
XYZxyz(12.0505, 6.3558, 19.0007)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A7A #1A7B1B
analogous
#4C1A7B #7B1A7A #7B1A4A
triadic
#7B1A7A #7A7B1A #1A7A7B
tetradic
#7B1A7A #7B4C1A #1A7B1B #1A4A7B
square
#7B1A7A #7B4C1A #1A7B1B #1A4A7B
split-complementary
#7B1A7A #4A7B1A #1A7B4C
monochromatic
#190519 #480F48 #7B1A7A #AE25AC #D53AD4

Accessibility & contrast

On white

9.25
#7B1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7B1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A7A
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A7A#FFFFFF#000000##FFFFFF
##7B1A7A1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043F7D
Deuteranopia (green-blind)
#364C78
Tritanopia (blue-blind)
#7F2A49
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1a7a;
/* rgb */ color: rgb(123, 26, 122);
/* oklch */ color: oklch(42.2% 0.170 328.5);
Tailwind
colors: {
  custom: {
    50: '#a563a1',
    500: '#7b1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a7a;
$custom-light: #a563a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a7a",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 300.619,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42156,
    "c": 0.16959,
    "h": 328.5
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#7B1A7A
secondary
#42AF43
accent
#E84140
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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