#7A218E#7A218E

#7A218E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.179 H 319.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7A218E
RGBrgb(122, 33, 142)
HSLhsl(289, 62%, 34%)
HSVhsv(289, 77%, 56%)
CMYKcmyk(14.1%, 76.8%, 0%, 44.3%)
CIE-LABlab(32.21, 52.76, -41.37)
CIE-LCHlch(32.21, 67.05, 321.90°)
OKLaboklab(43.9% 0.1357 -0.1161)
OKLCHoklch(43.9% 0.179 319.5)
XYZxyz(13.4518, 7.1790, 26.2631)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A218E #358E21
analogous
#44218E #7A218E #8E216C
triadic
#7A218E #8E7A21 #218E7A
tetradic
#7A218E #8E4421 #358E21 #216C8E
square
#7A218E #8E4421 #358E21 #216C8E
split-complementary
#7A218E #6C8E21 #218E44
monochromatic
#250A2B #4F155C #7A218E #A52DC0 #BF52D7

Accessibility & contrast

On white

8.62
#7A218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7A218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A218E
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A218E#FFFFFF#000000##FFFFFF
##7A218E1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#7A3756
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a218e;
/* rgb */ color: rgb(122, 33, 142);
/* oklch */ color: oklch(43.9% 0.179 319.5);
Tailwind
colors: {
  custom: {
    50: '#a467b0',
    500: '#7a218e',
    950: '#000000',
  },
}
SCSS
$custom: #7a218e;
$custom-light: #a467b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a218e",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 288.991,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43895,
    "c": 0.17862,
    "h": 319.5
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#7A218E
secondary
#64BA50
accent
#E54260
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A218E

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

Preview Lab → · Contrast checker → · Palette generator →

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