#7A216D#7A216D

#7A216D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.8% C 0.151 H 334.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7A216D
RGBrgb(122, 33, 109)
HSLhsl(309, 57%, 30%)
HSVhsv(309, 73%, 48%)
CMYKcmyk(0%, 73%, 10.7%, 52.2%)
CIE-LABlab(30.23, 46.80, -23.79)
CIE-LCHlch(30.23, 52.50, 333.06°)
OKLaboklab(41.84% 0.136 -0.065)
OKLCHoklch(41.84% 0.151 334.4)
XYZxyz(11.3303, 6.3304, 15.0902)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A216D #217A2E
analogous
#5A217A #7A216D #7A2140
triadic
#7A216D #6D7A21 #216D7A
tetradic
#7A216D #7A5A21 #217A2E #21407A
square
#7A216D #7A5A21 #217A2E #21407A
split-complementary
#7A216D #407A21 #217A5A
monochromatic
#1A0717 #4A1442 #7A216D #AA2E98 #CD48BA

Accessibility & contrast

On white

9.27
#7A216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7A216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A216D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A216D#FFFFFF#000000##FFFFFF
##7A216D1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203F6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#802844
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a216d;
/* rgb */ color: rgb(122, 33, 109);
/* oklch */ color: oklch(41.8% 0.151 334.4);
Tailwind
colors: {
  custom: {
    50: '#a36597',
    500: '#7a216d',
    950: '#000000',
  },
}
SCSS
$custom: #7a216d;
$custom-light: #a36597;
$custom-dark: #000000;
JSON
{
  "hex": "#7a216d",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 308.764,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4184,
    "c": 0.15077,
    "h": 334.4
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#7A216D
secondary
#4AAD58
accent
#E15E47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A216D

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

Preview Lab → · Contrast checker → · Palette generator →

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