#7B1D8B#7B1D8B

#7B1D8B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.181 H 321.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7B1D8B
RGBrgb(123, 29, 139)
HSLhsl(291, 65%, 33%)
HSVhsv(291, 79%, 55%)
CMYKcmyk(11.5%, 79.1%, 0%, 45.5%)
CIE-LABlab(31.70, 53.75, -40.33)
CIE-LCHlch(31.70, 67.20, 323.12°)
OKLaboklab(43.5% 0.1409 -0.113)
OKLCHoklch(43.5% 0.181 321.3)
XYZxyz(13.2674, 6.9545, 25.0646)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D8B #2D8B1D
analogous
#441D8B #7B1D8B #8B1D64
triadic
#7B1D8B #8B7B1D #1D8B7B
tetradic
#7B1D8B #8B441D #2D8B1D #1D648B
square
#7B1D8B #8B441D #2D8B1D #1D648B
split-complementary
#7B1D8B #648B1D #1D8B44
monochromatic
#210826 #4E1258 #7B1D8B #A828BE #C449D9

Accessibility & contrast

On white

8.78
#7B1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1D8B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D8B#FFFFFF#000000##FFFFFF
##7B1D8B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2B4E89
Tritanopia (blue-blind)
#7C3454
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1d8b;
/* rgb */ color: rgb(123, 29, 139);
/* oklch */ color: oklch(43.5% 0.181 321.3);
Tailwind
colors: {
  custom: {
    50: '#a565ad',
    500: '#7b1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d8b;
$custom-light: #a565ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d8b",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 291.273,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43504,
    "c": 0.18061,
    "h": 321.3
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#7B1D8B
secondary
#59BB49
accent
#E83F58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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