#7A218C#7A218C

#7A218C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.177 H 320.2°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7A218C
RGBrgb(122, 33, 140)
HSLhsl(290, 62%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(32.08, 52.37, -40.35)
CIE-LCHlch(32.08, 66.12, 322.38°)
OKLaboklab(43.76% 0.1359 -0.1131)
OKLCHoklch(43.76% 0.177 320.2)
XYZxyz(13.3029, 7.1194, 25.4793)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A218C #338C21
analogous
#45218C #7A218C #8C2169
triadic
#7A218C #8C7A21 #218C7A
tetradic
#7A218C #8C4521 #338C21 #21698C
square
#7A218C #8C4521 #338C21 #21698C
split-complementary
#7A218C #698C21 #218C45
monochromatic
#240A29 #4F155A #7A218C #A52DBE #C051D6

Accessibility & contrast

On white

8.66
#7A218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7A218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A218C
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A218C#FFFFFF#000000##FFFFFF
##7A218C1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#2C4E8A
Tritanopia (blue-blind)
#7A3755
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a218c;
/* rgb */ color: rgb(122, 33, 140);
/* oklch */ color: oklch(43.8% 0.177 320.2);
Tailwind
colors: {
  custom: {
    50: '#a466ae',
    500: '#7a218c',
    950: '#000000',
  },
}
SCSS
$custom: #7a218c;
$custom-light: #a466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7a218c",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 289.907,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43758,
    "c": 0.17686,
    "h": 320.2
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#7A218C
secondary
#61B94F
accent
#E5435E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A218C

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

Preview Lab → · Contrast checker → · Palette generator →

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