#7B217B#7B217B

#7B217B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.163 H 328.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7B217B
RGBrgb(123, 33, 123)
HSLhsl(300, 58%, 31%)
HSVhsv(300, 73%, 48%)
CMYKcmyk(0%, 73.2%, 0%, 51.8%)
CIE-LABlab(31.18, 49.44, -31.16)
CIE-LCHlch(31.18, 58.44, 327.78°)
OKLaboklab(42.81% 0.1379 -0.0863)
OKLCHoklch(42.81% 0.163 328)
XYZxyz(12.2872, 6.7296, 19.3868)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B217B #217B21
analogous
#4E217B #7B217B #7B214E
triadic
#7B217B #7B7B21 #217B7B
tetradic
#7B217B #7B4E21 #217B21 #214E7B
square
#7B217B #7B4E21 #217B21 #214E7B
split-complementary
#7B217B #4E7B21 #217B4E
monochromatic
#1A071A #4B144B #7B217B #AB2EAB #CE48CE

Accessibility & contrast

On white

8.95
#7B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7B217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B217B
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B217B#FFFFFF#000000##FFFFFF
##7B217B1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427E
Deuteranopia (green-blind)
#394D79
Tritanopia (blue-blind)
#7F2E4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b217b;
/* rgb */ color: rgb(123, 33, 123);
/* oklch */ color: oklch(42.8% 0.163 328.0);
Tailwind
colors: {
  custom: {
    50: '#a466a1',
    500: '#7b217b',
    950: '#000000',
  },
}
SCSS
$custom: #7b217b;
$custom-light: #a466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b217b",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42812,
    "c": 0.16269,
    "h": 328
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#7B217B
secondary
#4AAE4A
accent
#E14747
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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