#7B1E9D#7B1E9D

#7B1E9D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.195 H 314.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7B1E9D
RGBrgb(123, 30, 157)
HSLhsl(284, 68%, 37%)
HSVhsv(284, 81%, 62%)
CMYKcmyk(21.7%, 80.9%, 0%, 38.4%)
CIE-LABlab(33.08, 56.94, -49.15)
CIE-LCHlch(33.08, 75.22, 319.20°)
OKLaboklab(44.88% 0.1373 -0.1389)
OKLCHoklch(44.88% 0.195 314.7)
XYZxyz(14.7174, 7.5744, 32.5785)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1E9D #409D1E
analogous
#3C1E9D #7B1E9D #9D1E80
triadic
#7B1E9D #9D7B1E #1E9D7B
tetradic
#7B1E9D #9D3C1E #409D1E #1E809D
square
#7B1E9D #9D3C1E #409D1E #1E809D
split-complementary
#7B1E9D #809D1E #1E9D3C
monochromatic
#2A0A36 #53146A #7B1E9D #A328D0 #BA57DF

Accessibility & contrast

On white

8.35
#7B1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1E9D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1E9D#FFFFFF#000000##FFFFFF
##7B1E9D1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#14509A
Tritanopia (blue-blind)
#783D5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1e9d;
/* rgb */ color: rgb(123, 30, 157);
/* oklch */ color: oklch(44.9% 0.195 314.7);
Tailwind
colors: {
  custom: {
    50: '#a666bb',
    500: '#7b1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1e9d;
$custom-light: #a666bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1e9d",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 283.937,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44876,
    "c": 0.19527,
    "h": 314.7
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#7B1E9D
secondary
#72C254
accent
#EB3D6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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