#7B1E96#7B1E96

#7B1E96 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.189 H 317.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7B1E96
RGBrgb(123, 30, 150)
HSLhsl(287, 67%, 35%)
HSVhsv(287, 80%, 59%)
CMYKcmyk(18%, 80%, 0%, 41.2%)
CIE-LABlab(32.57, 55.55, -45.70)
CIE-LCHlch(32.57, 71.93, 320.56°)
OKLaboklab(44.36% 0.1385 -0.1287)
OKLCHoklch(44.36% 0.189 317.1)
XYZxyz(14.1369, 7.3421, 29.5208)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E96 #39961E
analogous
#3F1E96 #7B1E96 #961E75
triadic
#7B1E96 #967B1E #1E967B
tetradic
#7B1E96 #963F1E #39961E #1E7596
square
#7B1E96 #963F1E #39961E #1E7596
split-complementary
#7B1E96 #75961E #1E963F
monochromatic
#270A30 #511463 #7B1E96 #A528C9 #BD52DC

Accessibility & contrast

On white

8.51
#7B1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1E96
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E96#FFFFFF#000000##FFFFFF
##7B1E961.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#204F93
Tritanopia (blue-blind)
#7A395A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1e96;
/* rgb */ color: rgb(123, 30, 150);
/* oklch */ color: oklch(44.4% 0.189 317.1);
Tailwind
colors: {
  custom: {
    50: '#a566b6',
    500: '#7b1e96',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e96;
$custom-light: #a566b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e96",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 286.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4436,
    "c": 0.18913,
    "h": 317.1
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#7B1E96
secondary
#69BF50
accent
#EA3E65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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