#7A218B#7A218B

#7A218B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.7% C 0.176 H 320.6°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7A218B
RGBrgb(122, 33, 139)
HSLhsl(290, 62%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.2%, 76.3%, 0%, 45.5%)
CIE-LABlab(32.01, 52.18, -39.84)
CIE-LCHlch(32.01, 65.65, 322.64°)
OKLaboklab(43.69% 0.136 -0.1116)
OKLCHoklch(43.69% 0.176 320.6)
XYZxyz(13.2295, 7.0901, 25.0928)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A218B #328B21
analogous
#45218B #7A218B #8B2167
triadic
#7A218B #8B7A21 #218B7A
tetradic
#7A218B #8B4521 #328B21 #21678B
square
#7A218B #8B4521 #328B21 #21678B
split-complementary
#7A218B #678B21 #218B45
monochromatic
#230A28 #4F155A #7A218B #A52DBC #C051D6

Accessibility & contrast

On white

8.69
#7A218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A218B
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A218B#FFFFFF#000000##FFFFFF
##7A218B1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2D4E89
Tritanopia (blue-blind)
#7B3655
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a218b;
/* rgb */ color: rgb(122, 33, 139);
/* oklch */ color: oklch(43.7% 0.176 320.6);
Tailwind
colors: {
  custom: {
    50: '#a466ad',
    500: '#7a218b',
    950: '#000000',
  },
}
SCSS
$custom: #7a218b;
$custom-light: #a466ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a218b",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 290.377,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4369,
    "c": 0.17598,
    "h": 320.6
  },
  "luminance": 0.07089
}

Semantic roles & 50–950 ramp

primary
#7A218B
secondary
#60B94F
accent
#E5435D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A218B

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

Preview Lab → · Contrast checker → · Palette generator →

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