#7A1B7B#7A1B7B

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

Color values

HEX#7A1B7B
RGBrgb(122, 27, 123)
HSLhsl(299, 64%, 29%)
HSVhsv(299, 78%, 48%)
CMYKcmyk(0.8%, 78%, 0%, 51.8%)
CIE-LABlab(30.28, 51.28, -32.60)
CIE-LCHlch(30.28, 60.77, 327.55°)
OKLaboklab(42.14% 0.1426 -0.0905)
OKLCHoklch(42.14% 0.169 327.6)
XYZxyz(11.9930, 6.3524, 19.3295)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B7B #1C7B1B
analogous
#4A1B7B #7A1B7B #7B1B4C
triadic
#7A1B7B #7B7A1B #1B7B7A
tetradic
#7A1B7B #7B4A1B #1C7B1B #1B4C7B
square
#7A1B7B #7B4A1B #1C7B1B #1B4C7B
split-complementary
#7A1B7B #4C7B1B #1B7B4A
monochromatic
#190619 #481049 #7A1B7B #AC26AD #D33CD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A1B7B#FFFFFF#000000##FFFFFF
##7A1B7B1.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)
#02407E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#7E2B4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1b7b;
/* rgb */ color: rgb(122, 27, 123);
/* oklch */ color: oklch(42.1% 0.169 327.6);
Tailwind
colors: {
  custom: {
    50: '#a463a1',
    500: '#7a1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b7b;
$custom-light: #a463a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b7b",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 299.375,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42135,
    "c": 0.16888,
    "h": 327.6
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#7A1B7B
secondary
#44AF43
accent
#E74143
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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