#7B1C8A#7B1C8A

#7B1C8A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.181 H 321.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7B1C8A
RGBrgb(123, 28, 138)
HSLhsl(292, 66%, 33%)
HSVhsv(292, 80%, 54%)
CMYKcmyk(10.9%, 79.7%, 0%, 45.9%)
CIE-LABlab(31.53, 53.89, -39.99)
CIE-LCHlch(31.53, 67.10, 323.42°)
OKLaboklab(43.36% 0.1419 -0.112)
OKLCHoklch(43.36% 0.181 321.7)
XYZxyz(13.1706, 6.8772, 24.6735)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1C8A #2B8A1C
analogous
#441C8A #7B1C8A #8A1C62
triadic
#7B1C8A #8A7B1C #1C8A7B
tetradic
#7B1C8A #8A441C #2B8A1C #1C628A
square
#7B1C8A #8A441C #2B8A1C #1C628A
split-complementary
#7B1C8A #628A1C #1C8A44
monochromatic
#200724 #4E1257 #7B1C8A #A826BD #C647DA

Accessibility & contrast

On white

8.84
#7B1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7B1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1C8A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1C8A#FFFFFF#000000##FFFFFF
##7B1C8A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#2C4E88
Tritanopia (blue-blind)
#7C3353
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b1c8a;
/* rgb */ color: rgb(123, 28, 138);
/* oklch */ color: oklch(43.4% 0.181 321.7);
Tailwind
colors: {
  custom: {
    50: '#a565ad',
    500: '#7b1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b1c8a;
$custom-light: #a565ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1c8a",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 291.818,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43357,
    "c": 0.18076,
    "h": 321.7
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#7B1C8A
secondary
#56BB46
accent
#E93F56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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