#7B217E#7B217E

#7B217E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.165 H 326.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7B217E
RGBrgb(123, 33, 126)
HSLhsl(298, 58%, 31%)
HSVhsv(298, 74%, 49%)
CMYKcmyk(2.4%, 73.8%, 0%, 50.6%)
CIE-LABlab(31.36, 49.98, -32.77)
CIE-LCHlch(31.36, 59.76, 326.75°)
OKLaboklab(43% 0.1379 -0.091)
OKLCHoklch(43% 0.165 326.6)
XYZxyz(12.4779, 6.8059, 20.3911)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B217E #247E21
analogous
#4C217E #7B217E #7E2152
triadic
#7B217E #7E7B21 #217E7B
tetradic
#7B217E #7E4C21 #247E21 #21527E
square
#7B217E #7E4C21 #247E21 #21527E
split-complementary
#7B217E #527E21 #217E4C
monochromatic
#1C081D #4C144E #7B217E #AA2EAE #CB4AD0

Accessibility & contrast

On white

8.89
#7B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7B217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B217E
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B217E#FFFFFF#000000##FFFFFF
##7B217E1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4381
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#7E304D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b217e;
/* rgb */ color: rgb(123, 33, 126);
/* oklch */ color: oklch(43.0% 0.165 326.6);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7b217e',
    950: '#000000',
  },
}
SCSS
$custom: #7b217e;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b217e",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 298.065,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.16521,
    "h": 326.6
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#7B217E
secondary
#4DB14A
accent
#E2464B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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