#7B1D9B#7B1D9B

#7B1D9B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.194 H 315.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7B1D9B
RGBrgb(123, 29, 155)
HSLhsl(285, 68%, 36%)
HSVhsv(285, 81%, 61%)
CMYKcmyk(20.6%, 81.3%, 0%, 39.2%)
CIE-LABlab(32.83, 56.86, -48.34)
CIE-LCHlch(32.83, 74.63, 319.63°)
OKLaboklab(44.65% 0.1385 -0.1365)
OKLCHoklch(44.65% 0.194 315.4)
XYZxyz(14.5232, 7.4568, 31.6783)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D9B #3D9B1D
analogous
#3C1D9B #7B1D9B #9B1D7C
triadic
#7B1D9B #9B7B1D #1D9B7B
tetradic
#7B1D9B #9B3C1D #3D9B1D #1D7C9B
square
#7B1D9B #9B3C1D #3D9B1D #1D7C9B
split-complementary
#7B1D9B #7C9B1D #1D9B3C
monochromatic
#290A34 #521367 #7B1D9B #A427CF #BC53DF

Accessibility & contrast

On white

8.43
#7B1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7B1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D9B
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D9B#FFFFFF#000000##FFFFFF
##7B1D9B1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#175098
Tritanopia (blue-blind)
#783B5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1d9b;
/* rgb */ color: rgb(123, 29, 155);
/* oklch */ color: oklch(44.7% 0.194 315.4);
Tailwind
colors: {
  custom: {
    50: '#a666b9',
    500: '#7b1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d9b;
$custom-light: #a666b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d9b",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 284.762,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44651,
    "c": 0.19443,
    "h": 315.4
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#7B1D9B
secondary
#6EC252
accent
#EB3C69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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