#7B1D82#7B1D82

#7B1D82 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.173 H 325.0°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7B1D82
RGBrgb(123, 29, 130)
HSLhsl(296, 64%, 31%)
HSVhsv(296, 78%, 51%)
CMYKcmyk(5.4%, 77.7%, 0%, 49%)
CIE-LABlab(31.12, 52.09, -35.66)
CIE-LCHlch(31.12, 63.13, 325.61°)
OKLaboklab(42.9% 0.1417 -0.0993)
OKLCHoklch(42.9% 0.173 325)
XYZxyz(12.6367, 6.7022, 21.7428)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D82 #24821D
analogous
#481D82 #7B1D82 #821D56
triadic
#7B1D82 #827B1D #1D827B
tetradic
#7B1D82 #82481D #24821D #1D5682
square
#7B1D82 #82481D #24821D #1D5682
split-complementary
#7B1D82 #56821D #1D8248
monochromatic
#1C071E #4C1250 #7B1D82 #AA28B4 #CB44D5

Accessibility & contrast

On white

8.97
#7B1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7B1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D82
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D82#FFFFFF#000000##FFFFFF
##7B1D821.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#324D80
Tritanopia (blue-blind)
#7E2F4F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b1d82;
/* rgb */ color: rgb(123, 29, 130);
/* oklch */ color: oklch(42.9% 0.173 325.0);
Tailwind
colors: {
  custom: {
    50: '#a565a7',
    500: '#7b1d82',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d82;
$custom-light: #a565a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d82",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 295.842,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42903,
    "c": 0.17303,
    "h": 325
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#7B1D82
secondary
#4DB546
accent
#E7414D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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