#7B218F#7B218F

#7B218F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.180 H 319.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7B218F
RGBrgb(123, 33, 143)
HSLhsl(289, 63%, 35%)
HSVhsv(289, 77%, 56%)
CMYKcmyk(14%, 76.9%, 0%, 43.9%)
CIE-LABlab(32.44, 53.16, -41.61)
CIE-LCHlch(32.44, 67.51, 321.95°)
OKLaboklab(44.11% 0.1369 -0.1168)
OKLCHoklch(44.11% 0.18 319.5)
XYZxyz(13.6695, 7.2825, 26.6669)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B218F #358F21
analogous
#44218F #7B218F #8F216C
triadic
#7B218F #8F7B21 #218F7B
tetradic
#7B218F #8F4421 #358F21 #216C8F
square
#7B218F #8F4421 #358F21 #216C8F
split-complementary
#7B218F #6C8F21 #218F44
monochromatic
#250A2C #50165D #7B218F #A62CC1 #BF53D7

Accessibility & contrast

On white

8.55
#7B218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B218F
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B218F#FFFFFF#000000##FFFFFF
##7B218F1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#2A4F8D
Tritanopia (blue-blind)
#7B3857
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b218f;
/* rgb */ color: rgb(123, 33, 143);
/* oklch */ color: oklch(44.1% 0.180 319.5);
Tailwind
colors: {
  custom: {
    50: '#a567b0',
    500: '#7b218f',
    950: '#000000',
  },
}
SCSS
$custom: #7b218f;
$custom-light: #a567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b218f",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 289.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44113,
    "c": 0.17993,
    "h": 319.5
  },
  "luminance": 0.07282
}

Semantic roles & 50–950 ramp

primary
#7B218F
secondary
#64BB51
accent
#E64260
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B218F

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

Preview Lab → · Contrast checker → · Palette generator →

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