#7A217B#7A217B

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

Color values

HEX#7A217B
RGBrgb(122, 33, 123)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 73%, 48%)
CMYKcmyk(0.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(31.01, 49.20, -31.45)
CIE-LCHlch(31.01, 58.40, 327.42°)
OKLaboklab(42.66% 0.1368 -0.0871)
OKLCHoklch(42.66% 0.162 327.5)
XYZxyz(12.1449, 6.6562, 19.3802)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A217B #227B21
analogous
#4D217B #7A217B #7B214F
triadic
#7A217B #7B7A21 #217B7A
tetradic
#7A217B #7B4D21 #227B21 #214F7B
square
#7A217B #7B4D21 #227B21 #214F7B
split-complementary
#7A217B #4F7B21 #217B4D
monochromatic
#1A071A #4A144B #7A217B #AA2EAB #CD48CE

Accessibility & contrast

On white

9.01
#7A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7A217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A217B
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A217B#FFFFFF#000000##FFFFFF
##7A217B1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#7E2F4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a217b;
/* rgb */ color: rgb(122, 33, 123);
/* oklch */ color: oklch(42.7% 0.162 327.5);
Tailwind
colors: {
  custom: {
    50: '#a466a1',
    500: '#7a217b',
    950: '#000000',
  },
}
SCSS
$custom: #7a217b;
$custom-light: #a466a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a217b",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 299.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.16216,
    "h": 327.5
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#7A217B
secondary
#4BAE4A
accent
#E14749
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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