#7B1D9F#7B1D9F

#7B1D9F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.198 H 314.1°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7B1D9F
RGBrgb(123, 29, 159)
HSLhsl(283, 69%, 37%)
HSVhsv(283, 82%, 62%)
CMYKcmyk(22.6%, 81.8%, 0%, 37.6%)
CIE-LABlab(33.12, 57.66, -50.29)
CIE-LCHlch(33.12, 76.51, 318.90°)
OKLaboklab(44.95% 0.1376 -0.1422)
OKLCHoklch(44.95% 0.198 314.1)
XYZxyz(14.8647, 7.5934, 33.4768)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D9F #419F1D
analogous
#3A1D9F #7B1D9F #9F1D82
triadic
#7B1D9F #9F7B1D #1D9F7B
tetradic
#7B1D9F #9F3A1D #419F1D #1D829F
square
#7B1D9F #9F3A1D #419F1D #1D829F
split-complementary
#7B1D9F #829F1D #1D9F3A
monochromatic
#2B0A37 #53146B #7B1D9F #A326D3 #BA56E0

Accessibility & contrast

On white

8.34
#7B1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D9F
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D9F#FFFFFF#000000##FFFFFF
##7B1D9F1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#0E509C
Tritanopia (blue-blind)
#773D5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1d9f;
/* rgb */ color: rgb(123, 29, 159);
/* oklch */ color: oklch(45.0% 0.198 314.1);
Tailwind
colors: {
  custom: {
    50: '#a666bc',
    500: '#7b1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d9f;
$custom-light: #a666bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d9f",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 283.385,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44952,
    "c": 0.19793,
    "h": 314.1
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#7B1D9F
secondary
#73C454
accent
#EC3C6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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