#7A216F#7A216F

#7A216F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.152 H 333.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7A216F
RGBrgb(122, 33, 111)
HSLhsl(307, 57%, 30%)
HSVhsv(307, 73%, 48%)
CMYKcmyk(0%, 73%, 9%, 52.2%)
CIE-LABlab(30.34, 47.14, -24.90)
CIE-LCHlch(30.34, 53.31, 332.15°)
OKLaboklab(41.95% 0.1362 -0.0682)
OKLCHoklch(41.95% 0.152 333.4)
XYZxyz(11.4392, 6.3739, 15.6637)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A216F #217A2C
analogous
#58217A #7A216F #7A2142
triadic
#7A216F #6F7A21 #216F7A
tetradic
#7A216F #7A5821 #217A2C #21427A
square
#7A216F #7A5821 #217A2C #21427A
split-complementary
#7A216F #427A21 #217A58
monochromatic
#1A0717 #4A1443 #7A216F #AA2E9B #CD48BD

Accessibility & contrast

On white

9.23
#7A216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A216F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A216F#FFFFFF#000000##FFFFFF
##7A216F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3F71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#802945
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a216f;
/* rgb */ color: rgb(122, 33, 111);
/* oklch */ color: oklch(42.0% 0.152 333.4);
Tailwind
colors: {
  custom: {
    50: '#a36598',
    500: '#7a216f',
    950: '#000000',
  },
}
SCSS
$custom: #7a216f;
$custom-light: #a36598;
$custom-dark: #000000;
JSON
{
  "hex": "#7a216f",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 307.416,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41951,
    "c": 0.15234,
    "h": 333.4
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#7A216F
secondary
#4AAD56
accent
#E15A47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A216F

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

Preview Lab → · Contrast checker → · Palette generator →

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