#7B1D8A#7B1D8A

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

Color values

HEX#7B1D8A
RGBrgb(123, 29, 138)
HSLhsl(292, 65%, 33%)
HSVhsv(292, 79%, 54%)
CMYKcmyk(10.9%, 79%, 0%, 45.9%)
CIE-LABlab(31.64, 53.57, -39.81)
CIE-LCHlch(31.64, 66.74, 323.38°)
OKLaboklab(43.44% 0.141 -0.1115)
OKLCHoklch(43.44% 0.18 321.7)
XYZxyz(13.1947, 6.9254, 24.6816)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D8A #2C8A1D
analogous
#441D8A #7B1D8A #8A1D62
triadic
#7B1D8A #8A7B1D #1D8A7B
tetradic
#7B1D8A #8A441D #2C8A1D #1D628A
square
#7B1D8A #8A441D #2C8A1D #1D628A
split-complementary
#7B1D8A #628A1D #1D8A44
monochromatic
#210825 #4E1257 #7B1D8A #A828BD #C549D9

Accessibility & contrast

On white

8.81
#7B1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D8A
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D8A#FFFFFF#000000##FFFFFF
##7B1D8A1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.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: #7b1d8a;
/* rgb */ color: rgb(123, 29, 138);
/* oklch */ color: oklch(43.4% 0.180 321.7);
Tailwind
colors: {
  custom: {
    50: '#a565ad',
    500: '#7b1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d8a;
$custom-light: #a565ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d8a",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 291.743,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43436,
    "c": 0.17976,
    "h": 321.7
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#7B1D8A
secondary
#58BB48
accent
#E84057
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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