#7B1A96#7B1A96

#7B1A96 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.193 H 317.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#7B1A96
RGBrgb(123, 26, 150)
HSLhsl(287, 70%, 35%)
HSVhsv(287, 83%, 59%)
CMYKcmyk(18%, 82.7%, 0%, 41.2%)
CIE-LABlab(32.15, 56.77, -46.38)
CIE-LCHlch(32.15, 73.31, 320.75°)
OKLaboklab(44.06% 0.1417 -0.1307)
OKLCHoklch(44.06% 0.193 317.3)
XYZxyz(14.0420, 7.1524, 29.4891)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A96 #35961A
analogous
#3D1A96 #7B1A96 #961A73
triadic
#7B1A96 #967B1A #1A967B
tetradic
#7B1A96 #963D1A #35961A #1A7396
square
#7B1A96 #963D1A #35961A #1A7396
split-complementary
#7B1A96 #73961A #1A963D
monochromatic
#25082E #501162 #7B1A96 #A623CA #BF4BE0

Accessibility & contrast

On white

8.64
#7B1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7B1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A96
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A96#FFFFFF#000000##FFFFFF
##7B1A961.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#1D4E93
Tritanopia (blue-blind)
#7A3859
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b1a96;
/* rgb */ color: rgb(123, 26, 150);
/* oklch */ color: oklch(44.1% 0.193 317.3);
Tailwind
colors: {
  custom: {
    50: '#a564b6',
    500: '#7b1a96',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a96;
$custom-light: #a564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a96",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 286.935,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44063,
    "c": 0.19277,
    "h": 317.3
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#7B1A96
secondary
#64C24A
accent
#ED3B61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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