#7A217D#7A217D

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

Color values

HEX#7A217D
RGBrgb(122, 33, 125)
HSLhsl(298, 58%, 31%)
HSVhsv(298, 74%, 49%)
CMYKcmyk(2.4%, 73.6%, 0%, 51%)
CIE-LABlab(31.13, 49.56, -32.52)
CIE-LCHlch(31.13, 59.28, 326.73°)
OKLaboklab(42.78% 0.1368 -0.0903)
OKLCHoklch(42.78% 0.164 326.6)
XYZxyz(12.2713, 6.7068, 20.0463)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A217D #247D21
analogous
#4C217D #7A217D #7D2152
triadic
#7A217D #7D7A21 #217D7A
tetradic
#7A217D #7D4C21 #247D21 #21527D
square
#7A217D #7D4C21 #247D21 #21527D
split-complementary
#7A217D #527D21 #217D4C
monochromatic
#1B071C #4B144D #7A217D #A92EAD #CB49CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A217D#FFFFFF#000000##FFFFFF
##7A217D1.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)
#0C4280
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#7D304D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a217d;
/* rgb */ color: rgb(122, 33, 125);
/* oklch */ color: oklch(42.8% 0.164 326.6);
Tailwind
colors: {
  custom: {
    50: '#a466a3',
    500: '#7a217d',
    950: '#000000',
  },
}
SCSS
$custom: #7a217d;
$custom-light: #a466a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a217d",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 298.043,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.16385,
    "h": 326.6
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#7A217D
secondary
#4DB04A
accent
#E1464B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A217D

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

Preview Lab → · Contrast checker → · Palette generator →

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