#7B1C96#7B1C96

#7B1C96 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.2% C 0.191 H 317.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#7B1C96
RGBrgb(123, 28, 150)
HSLhsl(287, 69%, 35%)
HSVhsv(287, 81%, 59%)
CMYKcmyk(18%, 81.3%, 0%, 41.2%)
CIE-LABlab(32.36, 56.18, -46.05)
CIE-LCHlch(32.36, 72.64, 320.66°)
OKLaboklab(44.21% 0.1402 -0.1298)
OKLCHoklch(44.21% 0.191 317.2)
XYZxyz(14.0878, 7.2441, 29.5044)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1C96 #37961C
analogous
#3E1C96 #7B1C96 #961C74
triadic
#7B1C96 #967B1C #1C967B
tetradic
#7B1C96 #963E1C #37961C #1C7496
square
#7B1C96 #963E1C #37961C #1C7496
split-complementary
#7B1C96 #74961C #1C963E
monochromatic
#26092F #511262 #7B1C96 #A526CA #BE4EDE

Accessibility & contrast

On white

8.58
#7B1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7B1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1C96
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1C96#FFFFFF#000000##FFFFFF
##7B1C961.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1c96;
/* rgb */ color: rgb(123, 28, 150);
/* oklch */ color: oklch(44.2% 0.191 317.2);
Tailwind
colors: {
  custom: {
    50: '#a565b6',
    500: '#7b1c96',
    950: '#000000',
  },
}
SCSS
$custom: #7b1c96;
$custom-light: #a565b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1c96",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 286.721,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44207,
    "c": 0.191,
    "h": 317.2
  },
  "luminance": 0.07243
}

Semantic roles & 50–950 ramp

primary
#7B1C96
secondary
#67C14D
accent
#EB3C63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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