#7A217C#7A217C

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

Color values

HEX#7A217C
RGBrgb(122, 33, 124)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 73%, 49%)
CMYKcmyk(1.6%, 73.4%, 0%, 51.4%)
CIE-LABlab(31.07, 49.38, -31.98)
CIE-LCHlch(31.07, 58.84, 327.07°)
OKLaboklab(42.72% 0.1368 -0.0887)
OKLCHoklch(42.72% 0.163 327)
XYZxyz(12.2078, 6.6814, 19.7115)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A217C #237C21
analogous
#4C217C #7A217C #7C2150
triadic
#7A217C #7C7A21 #217C7A
tetradic
#7A217C #7C4C21 #237C21 #21507C
square
#7A217C #7C4C21 #237C21 #21507C
split-complementary
#7A217C #507C21 #217C4C
monochromatic
#1B071B #4A144C #7A217C #AA2EAC #CC49CF

Accessibility & contrast

On white

8.99
#7A217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A217C
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A217C#FFFFFF#000000##FFFFFF
##7A217C1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E427F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#7E2F4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a217c;
/* rgb */ color: rgb(122, 33, 124);
/* oklch */ color: oklch(42.7% 0.163 327.0);
Tailwind
colors: {
  custom: {
    50: '#a466a2',
    500: '#7a217c',
    950: '#000000',
  },
}
SCSS
$custom: #7a217c;
$custom-light: #a466a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a217c",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 298.681,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42716,
    "c": 0.16301,
    "h": 327
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#7A217C
secondary
#4CAF4A
accent
#E1474A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A217C

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

Preview Lab → · Contrast checker → · Palette generator →

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