#7B219E#7B219E

#7B219E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.193 H 314.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7B219E
RGBrgb(123, 33, 158)
HSLhsl(283, 65%, 37%)
HSVhsv(283, 79%, 62%)
CMYKcmyk(22.2%, 79.1%, 0%, 38%)
CIE-LABlab(33.49, 56.16, -49.08)
CIE-LCHlch(33.49, 74.58, 318.84°)
OKLaboklab(45.19% 0.1346 -0.1387)
OKLCHoklch(45.19% 0.193 314.1)
XYZxyz(14.8827, 7.7678, 33.0565)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B219E #449E21
analogous
#3D219E #7B219E #9E2183
triadic
#7B219E #9E7B21 #219E7B
tetradic
#7B219E #9E3D21 #449E21 #21839E
square
#7B219E #9E3D21 #449E21 #21839E
split-complementary
#7B219E #839E21 #219E3D
monochromatic
#2C0C39 #54166B #7B219E #A22CD1 #B95CDD

Accessibility & contrast

On white

8.22
#7B219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B219E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B219E#FFFFFF#000000##FFFFFF
##7B219E1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#16519B
Tritanopia (blue-blind)
#783F5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b219e;
/* rgb */ color: rgb(123, 33, 158);
/* oklch */ color: oklch(45.2% 0.193 314.1);
Tailwind
colors: {
  custom: {
    50: '#a667bb',
    500: '#7b219e',
    950: '#000000',
  },
}
SCSS
$custom: #7b219e;
$custom-light: #a667bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b219e",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 283.2,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4519,
    "c": 0.1933,
    "h": 314.1
  },
  "luminance": 0.07767
}

Semantic roles & 50–950 ramp

primary
#7B219E
secondary
#77C159
accent
#E83F6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B219E

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

Preview Lab → · Contrast checker → · Palette generator →

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