#7B219C#7B219C

#7B219C is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.192 H 314.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7B219C
RGBrgb(123, 33, 156)
HSLhsl(284, 65%, 37%)
HSVhsv(284, 79%, 61%)
CMYKcmyk(21.2%, 78.8%, 0%, 38.8%)
CIE-LABlab(33.35, 55.75, -48.10)
CIE-LCHlch(33.35, 73.63, 319.21°)
OKLaboklab(45.04% 0.135 -0.1358)
OKLCHoklch(45.04% 0.192 314.8)
XYZxyz(14.7120, 7.6995, 32.1572)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B219C #429C21
analogous
#3D219C #7B219C #9C2180
triadic
#7B219C #9C7B21 #219C7B
tetradic
#7B219C #9C3D21 #429C21 #21809C
square
#7B219C #9C3D21 #429C21 #21809C
split-complementary
#7B219C #809C21 #219C3D
monochromatic
#2B0C37 #531669 #7B219C #A32CCF #BA5BDC

Accessibility & contrast

On white

8.27
#7B219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B219C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B219C#FFFFFF#000000##FFFFFF
##7B219C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#1A5199
Tritanopia (blue-blind)
#783E5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b219c;
/* rgb */ color: rgb(123, 33, 156);
/* oklch */ color: oklch(45.0% 0.192 314.8);
Tailwind
colors: {
  custom: {
    50: '#a567ba',
    500: '#7b219c',
    950: '#000000',
  },
}
SCSS
$custom: #7b219c;
$custom-light: #a567ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b219c",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 283.902,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45042,
    "c": 0.1915,
    "h": 314.8
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#7B219C
secondary
#74C158
accent
#E8406D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B219C

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

Preview Lab → · Contrast checker → · Palette generator →

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