#7A217F#7A217F

#7A217F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.166 H 325.7°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7A217F
RGBrgb(122, 33, 127)
HSLhsl(297, 59%, 31%)
HSVhsv(297, 74%, 50%)
CMYKcmyk(3.9%, 74%, 0%, 50.2%)
CIE-LABlab(31.25, 49.93, -33.58)
CIE-LCHlch(31.25, 60.17, 326.07°)
OKLaboklab(42.9% 0.1367 -0.0934)
OKLCHoklch(42.9% 0.166 325.7)
XYZxyz(12.4004, 6.7584, 20.7259)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A217F #267F21
analogous
#4B217F #7A217F #7F2155
triadic
#7A217F #7F7A21 #217F7A
tetradic
#7A217F #7F4B21 #267F21 #21557F
square
#7A217F #7F4B21 #267F21 #21557F
split-complementary
#7A217F #557F21 #217F4B
monochromatic
#1D081E #4B144E #7A217F #A92EB0 #C94AD0

Accessibility & contrast

On white

8.93
#7A217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A217F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A217F#FFFFFF#000000##FFFFFF
##7A217F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074282
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#7D314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a217f;
/* rgb */ color: rgb(122, 33, 127);
/* oklch */ color: oklch(42.9% 0.166 325.7);
Tailwind
colors: {
  custom: {
    50: '#a466a4',
    500: '#7a217f',
    950: '#000000',
  },
}
SCSS
$custom: #7a217f;
$custom-light: #a466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a217f",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 296.809,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42903,
    "c": 0.16555,
    "h": 325.7
  },
  "luminance": 0.06758
}

Semantic roles & 50–950 ramp

primary
#7A217F
secondary
#50B24A
accent
#E2464E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A217F

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

Preview Lab → · Contrast checker → · Palette generator →

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