#7B1581#7B1581

#7B1581 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.3% C 0.180 H 325.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7B1581
RGBrgb(123, 21, 129)
HSLhsl(297, 72%, 29%)
HSVhsv(297, 84%, 51%)
CMYKcmyk(4.7%, 83.7%, 0%, 49.4%)
CIE-LABlab(30.24, 54.28, -36.44)
CIE-LCHlch(30.24, 65.38, 326.12°)
OKLaboklab(42.26% 0.1483 -0.1016)
OKLCHoklch(42.26% 0.18 325.6)
XYZxyz(12.3987, 6.3331, 21.3340)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1581 #1B8115
analogous
#451581 #7B1581 #811551
triadic
#7B1581 #817B15 #15817B
tetradic
#7B1581 #814515 #1B8115 #155181
square
#7B1581 #814515 #1B8115 #155181
split-complementary
#7B1581 #518115 #158145
monochromatic
#19041A #490C4C #7B1581 #AD1EB6 #D433DE

Accessibility & contrast

On white

9.27
#7B1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1581
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1581#FFFFFF#000000##FFFFFF
##7B15811.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#304B7F
Tritanopia (blue-blind)
#7E2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1581;
/* rgb */ color: rgb(123, 21, 129);
/* oklch */ color: oklch(42.3% 0.180 325.6);
Tailwind
colors: {
  custom: {
    50: '#a562a6',
    500: '#7b1581',
    950: '#000000',
  },
}
SCSS
$custom: #7b1581;
$custom-light: #a562a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1581",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 296.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42257,
    "c": 0.17973,
    "h": 325.6
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#7B1581
secondary
#43B63C
accent
#EF3943
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1581

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

Preview Lab → · Contrast checker → · Palette generator →

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