#7B218A#7B218A

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

Color values

HEX#7B218A
RGBrgb(123, 33, 138)
HSLhsl(291, 61%, 34%)
HSVhsv(291, 76%, 54%)
CMYKcmyk(10.9%, 76.1%, 0%, 45.9%)
CIE-LABlab(32.11, 52.20, -39.05)
CIE-LCHlch(32.11, 65.19, 323.20°)
OKLaboklab(43.77% 0.1374 -0.1093)
OKLCHoklch(43.77% 0.176 321.5)
XYZxyz(13.2992, 7.1344, 24.7164)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B218A #308A21
analogous
#46218A #7B218A #8A2164
triadic
#7B218A #8A7B21 #218A7B
tetradic
#7B218A #8A4621 #308A21 #21648A
square
#7B218A #8A4621 #308A21 #21648A
split-complementary
#7B218A #648A21 #218A46
monochromatic
#230927 #4F1559 #7B218A #A72DBB #C250D5

Accessibility & contrast

On white

8.65
#7B218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7B218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B218A
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B218A#FFFFFF#000000##FFFFFF
##7B218A1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#2F4F88
Tritanopia (blue-blind)
#7C3554
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b218a;
/* rgb */ color: rgb(123, 33, 138);
/* oklch */ color: oklch(43.8% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7b218a',
    950: '#000000',
  },
}
SCSS
$custom: #7b218a;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b218a",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 291.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43772,
    "c": 0.17553,
    "h": 321.5
  },
  "luminance": 0.07134
}

Semantic roles & 50–950 ramp

primary
#7B218A
secondary
#5DB94E
accent
#E5435A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B218A

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

Preview Lab → · Contrast checker → · Palette generator →

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