#7B1E7D#7B1E7D

#7B1E7D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.168 H 327.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7B1E7D
RGBrgb(123, 30, 125)
HSLhsl(299, 61%, 30%)
HSVhsv(299, 76%, 49%)
CMYKcmyk(1.6%, 76%, 0%, 51%)
CIE-LABlab(30.93, 50.86, -32.83)
CIE-LCHlch(30.93, 60.54, 327.16°)
OKLaboklab(42.67% 0.1409 -0.0911)
OKLCHoklch(42.67% 0.168 327.1)
XYZxyz(12.3341, 6.6210, 20.0264)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E7D #207D1E
analogous
#4B1E7D #7B1E7D #7D1E4F
triadic
#7B1E7D #7D7B1E #1E7D7B
tetradic
#7B1E7D #7D4B1E #207D1E #1E4F7D
square
#7B1E7D #7D4B1E #207D1E #1E4F7D
split-complementary
#7B1E7D #4F7D1E #1E7D4B
monochromatic
#1A061A #4A124C #7B1E7D #AC2AAE #CF43D2

Accessibility & contrast

On white

9.04
#7B1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7B1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1E7D
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E7D#FFFFFF#000000##FFFFFF
##7B1E7D1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064180
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#7F2E4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1e7d;
/* rgb */ color: rgb(123, 30, 125);
/* oklch */ color: oklch(42.7% 0.168 327.1);
Tailwind
colors: {
  custom: {
    50: '#a465a3',
    500: '#7b1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e7d;
$custom-light: #a465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e7d",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 298.737,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.1678,
    "h": 327.1
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#7B1E7D
secondary
#49B046
accent
#E44347
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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