#7B217A#7B217A

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

Color values

HEX#7B217A
RGBrgb(123, 33, 122)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 73%, 48%)
CMYKcmyk(0%, 73.2%, 0.8%, 51.8%)
CIE-LABlab(31.13, 49.27, -30.63)
CIE-LCHlch(31.13, 58.01, 328.13°)
OKLaboklab(42.75% 0.1379 -0.0847)
OKLCHoklch(42.75% 0.162 328.4)
XYZxyz(12.2250, 6.7047, 19.0588)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B217A #217B22
analogous
#4F217B #7B217A #7B214D
triadic
#7B217A #7A7B21 #217A7B
tetradic
#7B217A #7B4F21 #217B22 #214D7B
square
#7B217A #7B4F21 #217B22 #214D7B
split-complementary
#7B217A #4D7B21 #217B4F
monochromatic
#1A071A #4B144A #7B217A #AB2EAA #CE48CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B217A#FFFFFF#000000##FFFFFF
##7B217A1.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)
#13427C
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#7F2E4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b217a;
/* rgb */ color: rgb(123, 33, 122);
/* oklch */ color: oklch(42.8% 0.162 328.4);
Tailwind
colors: {
  custom: {
    50: '#a466a1',
    500: '#7b217a',
    950: '#000000',
  },
}
SCSS
$custom: #7b217a;
$custom-light: #a466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b217a",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 300.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42751,
    "c": 0.16186,
    "h": 328.4
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#7B217A
secondary
#4AAE4B
accent
#E14947
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B217A

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

Preview Lab → · Contrast checker → · Palette generator →

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