#7B1A9E#7B1A9E

#7B1A9E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.7% C 0.200 H 314.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7B1A9E
RGBrgb(123, 26, 158)
HSLhsl(284, 72%, 36%)
HSVhsv(284, 84%, 62%)
CMYKcmyk(22.2%, 83.5%, 0%, 38%)
CIE-LABlab(32.74, 58.34, -50.30)
CIE-LCHlch(32.74, 77.03, 319.23°)
OKLaboklab(44.66% 0.1401 -0.1422)
OKLCHoklch(44.66% 0.2 314.6)
XYZxyz(14.7083, 7.4189, 32.9983)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A9E #3D9E1A
analogous
#391A9E #7B1A9E #9E1A7F
triadic
#7B1A9E #9E7B1A #1A9E7B
tetradic
#7B1A9E #9E391A #3D9E1A #1A7F9E
square
#7B1A9E #9E391A #3D9E1A #1A7F9E
split-complementary
#7B1A9E #7F9E1A #1A9E39
monochromatic
#290935 #521169 #7B1A9E #A423D3 #BC50E2

Accessibility & contrast

On white

8.46
#7B1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7B1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A9E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A9E#FFFFFF#000000##FFFFFF
##7B1A9E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#0C4F9B
Tritanopia (blue-blind)
#783C5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1a9e;
/* rgb */ color: rgb(123, 26, 158);
/* oklch */ color: oklch(44.7% 0.200 314.6);
Tailwind
colors: {
  custom: {
    50: '#a665bb',
    500: '#7b1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a9e;
$custom-light: #a665bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a9e",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 284.091,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44663,
    "c": 0.19962,
    "h": 314.6
  },
  "luminance": 0.07418
}

Semantic roles & 50–950 ramp

primary
#7B1A9E
secondary
#6EC54F
accent
#EE3969
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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