#7A218A#7A218A

#7A218A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.175 H 321.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7A218A
RGBrgb(122, 33, 138)
HSLhsl(291, 61%, 34%)
HSVhsv(291, 76%, 54%)
CMYKcmyk(11.6%, 76.1%, 0%, 45.9%)
CIE-LABlab(31.95, 51.99, -39.33)
CIE-LCHlch(31.95, 65.19, 322.89°)
OKLaboklab(43.62% 0.1361 -0.1101)
OKLCHoklch(43.62% 0.175 321)
XYZxyz(13.1568, 7.0610, 24.7097)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A218A #318A21
analogous
#45218A #7A218A #8A2165
triadic
#7A218A #8A7A21 #218A7A
tetradic
#7A218A #8A4521 #318A21 #21658A
square
#7A218A #8A4521 #318A21 #21658A
split-complementary
#7A218A #658A21 #218A45
monochromatic
#230927 #4E1559 #7A218A #A62DBB #C150D5

Accessibility & contrast

On white

8.71
#7A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7A218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A218A
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A218A#FFFFFF#000000##FFFFFF
##7A218A1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#2D4E88
Tritanopia (blue-blind)
#7B3654
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a218a;
/* rgb */ color: rgb(122, 33, 138);
/* oklch */ color: oklch(43.6% 0.175 321.0);
Tailwind
colors: {
  custom: {
    50: '#a466ad',
    500: '#7a218a',
    950: '#000000',
  },
}
SCSS
$custom: #7a218a;
$custom-light: #a466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a218a",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 290.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43622,
    "c": 0.1751,
    "h": 321
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#7A218A
secondary
#5EB94E
accent
#E5435C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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