#7B1A9D#7B1A9D

#7B1A9D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.199 H 314.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7B1A9D
RGBrgb(123, 26, 157)
HSLhsl(284, 72%, 36%)
HSVhsv(284, 83%, 62%)
CMYKcmyk(21.7%, 83.4%, 0%, 38.4%)
CIE-LABlab(32.67, 58.14, -49.82)
CIE-LCHlch(32.67, 76.57, 319.41°)
OKLaboklab(44.59% 0.1403 -0.1408)
OKLCHoklch(44.59% 0.199 314.9)
XYZxyz(14.6226, 7.3846, 32.5469)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A9D #3C9D1A
analogous
#391A9D #7B1A9D #9D1A7D
triadic
#7B1A9D #9D7B1A #1A9D7B
tetradic
#7B1A9D #9D391A #3C9D1A #1A7D9D
square
#7B1A9D #9D391A #3C9D1A #1A7D9D
split-complementary
#7B1A9D #7D9D1A #1A9D39
monochromatic
#290934 #521168 #7B1A9D #A423D2 #BC4FE2

Accessibility & contrast

On white

8.48
#7B1A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1A9D
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A9D#FFFFFF#000000##FFFFFF
##7B1A9D1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#0F4F9A
Tritanopia (blue-blind)
#783B5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1a9d;
/* rgb */ color: rgb(123, 26, 157);
/* oklch */ color: oklch(44.6% 0.199 314.9);
Tailwind
colors: {
  custom: {
    50: '#a665bb',
    500: '#7b1a9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a9d;
$custom-light: #a665bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a9d",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 284.427,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44587,
    "c": 0.19875,
    "h": 314.9
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#7B1A9D
secondary
#6DC44E
accent
#EE3968
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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