#7B218B#7B218B

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

Color values

HEX#7B218B
RGBrgb(123, 33, 139)
HSLhsl(291, 62%, 34%)
HSVhsv(291, 76%, 55%)
CMYKcmyk(11.5%, 76.3%, 0%, 45.5%)
CIE-LABlab(32.18, 52.39, -39.57)
CIE-LCHlch(32.18, 65.66, 322.94°)
OKLaboklab(43.84% 0.1373 -0.1108)
OKLCHoklch(43.84% 0.176 321.1)
XYZxyz(13.3719, 7.1635, 25.0994)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B218B #318B21
analogous
#46218B #7B218B #8B2166
triadic
#7B218B #8B7B21 #218B7B
tetradic
#7B218B #8B4621 #318B21 #21668B
square
#7B218B #8B4621 #318B21 #21668B
split-complementary
#7B218B #668B21 #218B46
monochromatic
#230A28 #4F155A #7B218B #A72DBC #C251D6

Accessibility & contrast

On white

8.63
#7B218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B218B
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B218B#FFFFFF#000000##FFFFFF
##7B218B1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#2E4F89
Tritanopia (blue-blind)
#7C3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b218b;
/* rgb */ color: rgb(123, 33, 139);
/* oklch */ color: oklch(43.8% 0.176 321.1);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7b218b',
    950: '#000000',
  },
}
SCSS
$custom: #7b218b;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b218b",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 290.943,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4384,
    "c": 0.17641,
    "h": 321.1
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

primary
#7B218B
secondary
#5FB94F
accent
#E5435B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B218B

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

Preview Lab → · Contrast checker → · Palette generator →

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