#7B1A97#7B1A97

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

Color values

HEX#7B1A97
RGBrgb(123, 26, 151)
HSLhsl(287, 71%, 35%)
HSVhsv(287, 83%, 59%)
CMYKcmyk(18.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(32.22, 56.97, -46.87)
CIE-LCHlch(32.22, 73.77, 320.55°)
OKLaboklab(44.14% 0.1415 -0.1322)
OKLCHoklch(44.14% 0.194 317)
XYZxyz(14.1228, 7.1847, 29.9150)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A97 #36971A
analogous
#3D1A97 #7B1A97 #971A75
triadic
#7B1A97 #977B1A #1A977B
tetradic
#7B1A97 #973D1A #36971A #1A7597
square
#7B1A97 #973D1A #36971A #1A7597
split-complementary
#7B1A97 #75971A #1A973D
monochromatic
#26082F #501163 #7B1A97 #A623CB #BF4BE0

Accessibility & contrast

On white

8.62
#7B1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1A97
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A97#FFFFFF#000000##FFFFFF
##7B1A971.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#1B4E94
Tritanopia (blue-blind)
#79385A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b1a97;
/* rgb */ color: rgb(123, 26, 151);
/* oklch */ color: oklch(44.1% 0.194 317.0);
Tailwind
colors: {
  custom: {
    50: '#a564b6',
    500: '#7b1a97',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a97;
$custom-light: #a564b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a97",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 286.56,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44137,
    "c": 0.19362,
    "h": 317
  },
  "luminance": 0.07184
}

Semantic roles & 50–950 ramp

primary
#7B1A97
secondary
#65C24B
accent
#ED3A63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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