#7B1580#7B1580

#7B1580 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.179 H 326.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#7B1580
RGBrgb(123, 21, 128)
HSLhsl(297, 72%, 29%)
HSVhsv(297, 84%, 50%)
CMYKcmyk(3.9%, 83.6%, 0%, 49.8%)
CIE-LABlab(30.17, 54.11, -35.92)
CIE-LCHlch(30.17, 64.94, 326.42°)
OKLaboklab(42.19% 0.1484 -0.1)
OKLCHoklch(42.19% 0.179 326)
XYZxyz(12.3326, 6.3067, 20.9856)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1580 #1A8015
analogous
#461580 #7B1580 #801550
triadic
#7B1580 #807B15 #15807B
tetradic
#7B1580 #804615 #1A8015 #155080
square
#7B1580 #804615 #1A8015 #155080
split-complementary
#7B1580 #508015 #158046
monochromatic
#19041A #480C4B #7B1580 #AE1EB5 #D532DD

Accessibility & contrast

On white

9.29
#7B1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7B1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1580
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1580#FFFFFF#000000##FFFFFF
##7B15801.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#304B7E
Tritanopia (blue-blind)
#7E2A4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1580;
/* rgb */ color: rgb(123, 21, 128);
/* oklch */ color: oklch(42.2% 0.179 326.0);
Tailwind
colors: {
  custom: {
    50: '#a562a5',
    500: '#7b1580',
    950: '#000000',
  },
}
SCSS
$custom: #7b1580;
$custom-light: #a562a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1580",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 297.196,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42191,
    "c": 0.17894,
    "h": 326
  },
  "luminance": 0.06306
}

Semantic roles & 50–950 ramp

primary
#7B1580
secondary
#42B53C
accent
#EF3942
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1580

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

Preview Lab → · Contrast checker → · Palette generator →

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