#7A217E#7A217E

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

Color values

HEX#7A217E
RGBrgb(122, 33, 126)
HSLhsl(297, 58%, 31%)
HSVhsv(297, 74%, 49%)
CMYKcmyk(3.2%, 73.8%, 0%, 50.6%)
CIE-LABlab(31.19, 49.74, -33.05)
CIE-LCHlch(31.19, 59.72, 326.40°)
OKLaboklab(42.84% 0.1367 -0.0918)
OKLCHoklch(42.84% 0.165 326.1)
XYZxyz(12.3355, 6.7325, 20.3844)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A217E #257E21
analogous
#4B217E #7A217E #7E2153
triadic
#7A217E #7E7A21 #217E7A
tetradic
#7A217E #7E4B21 #257E21 #21537E
square
#7A217E #7E4B21 #257E21 #21537E
split-complementary
#7A217E #537E21 #217E4B
monochromatic
#1C081D #4B144E #7A217E #A92EAE #CA4AD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A217E#FFFFFF#000000##FFFFFF
##7A217E1.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)
#0A4281
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#7D304D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a217e;
/* rgb */ color: rgb(122, 33, 126);
/* oklch */ color: oklch(42.8% 0.165 326.1);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7a217e',
    950: '#000000',
  },
}
SCSS
$custom: #7a217e;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a217e",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 297.419,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4284,
    "c": 0.1647,
    "h": 326.1
  },
  "luminance": 0.06732
}

Semantic roles & 50–950 ramp

primary
#7A217E
secondary
#4EB14A
accent
#E2464D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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