#7B1781#7B1781

#7B1781 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.178 H 325.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7B1781
RGBrgb(123, 23, 129)
HSLhsl(297, 70%, 30%)
HSVhsv(297, 82%, 51%)
CMYKcmyk(4.7%, 82.2%, 0%, 49.4%)
CIE-LABlab(30.42, 53.74, -36.15)
CIE-LCHlch(30.42, 64.77, 326.08°)
OKLaboklab(42.39% 0.1468 -0.1007)
OKLCHoklch(42.39% 0.178 325.5)
XYZxyz(12.4369, 6.4096, 21.3467)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1781 #1D8117
analogous
#461781 #7B1781 #811752
triadic
#7B1781 #817B17 #17817B
tetradic
#7B1781 #814617 #1D8117 #175281
square
#7B1781 #814617 #1D8117 #175281
split-complementary
#7B1781 #528117 #178146
monochromatic
#19051A #490E4D #7B1781 #AD20B5 #D237DB

Accessibility & contrast

On white

9.20
#7B1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1781
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1781#FFFFFF#000000##FFFFFF
##7B17811.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#304C7F
Tritanopia (blue-blind)
#7E2C4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1781;
/* rgb */ color: rgb(123, 23, 129);
/* oklch */ color: oklch(42.4% 0.178 325.5);
Tailwind
colors: {
  custom: {
    50: '#a562a6',
    500: '#7b1781',
    950: '#000000',
  },
}
SCSS
$custom: #7b1781;
$custom-light: #a562a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1781",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 296.604,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.17802,
    "h": 325.5
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#7B1781
secondary
#45B53E
accent
#ED3B45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1781

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

Preview Lab → · Contrast checker → · Palette generator →

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