#7B1D9E#7B1D9E

#7B1D9E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.197 H 314.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7B1D9E
RGBrgb(123, 29, 158)
HSLhsl(284, 69%, 37%)
HSVhsv(284, 82%, 62%)
CMYKcmyk(22.2%, 81.6%, 0%, 38%)
CIE-LABlab(33.05, 57.46, -49.81)
CIE-LCHlch(33.05, 76.04, 319.08°)
OKLaboklab(44.88% 0.1379 -0.1408)
OKLCHoklch(44.88% 0.197 314.4)
XYZxyz(14.7782, 7.5588, 33.0217)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D9E #409E1D
analogous
#3B1D9E #7B1D9E #9E1D81
triadic
#7B1D9E #9E7B1D #1D9E7B
tetradic
#7B1D9E #9E3B1D #409E1D #1D819E
square
#7B1D9E #9E3B1D #409E1D #1D819E
split-complementary
#7B1D9E #819E1D #1D9E3B
monochromatic
#2A0A37 #53146A #7B1D9E #A326D2 #BA56E0

Accessibility & contrast

On white

8.36
#7B1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D9E
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D9E#FFFFFF#000000##FFFFFF
##7B1D9E1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#10509B
Tritanopia (blue-blind)
#783D5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1d9e;
/* rgb */ color: rgb(123, 29, 158);
/* oklch */ color: oklch(44.9% 0.197 314.4);
Tailwind
colors: {
  custom: {
    50: '#a666bb',
    500: '#7b1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d9e;
$custom-light: #a666bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d9e",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 283.721,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44876,
    "c": 0.19705,
    "h": 314.4
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#7B1D9E
secondary
#72C354
accent
#EC3C6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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