#7B21AC#7B21AC

#7B21AC is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.206 H 309.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7B21AC
RGBrgb(123, 33, 172)
HSLhsl(279, 68%, 40%)
HSVhsv(279, 81%, 67%)
CMYKcmyk(28.5%, 80.8%, 0%, 32.5%)
CIE-LABlab(34.55, 59.07, -55.80)
CIE-LCHlch(34.55, 81.26, 316.63°)
OKLaboklab(46.27% 0.1316 -0.1584)
OKLCHoklch(46.27% 0.206 309.7)
XYZxyz(16.1571, 8.2776, 39.7683)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21AC #52AC21
analogous
#3521AC #7B21AC #AC2197
triadic
#7B21AC #AC7B21 #21AC7B
tetradic
#7B21AC #AC3521 #52AC21 #2197AC
square
#7B21AC #AC3521 #52AC21 #2197AC
split-complementary
#7B21AC #97AC21 #21AC35
monochromatic
#320D45 #561779 #7B21AC #9D32D8 #B666E2

Accessibility & contrast

On white

7.91
#7B21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21AC
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21AC#FFFFFF#000000##FFFFFF
##7B21AC1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0052A9
Tritanopia (blue-blind)
#744567
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b21ac;
/* rgb */ color: rgb(123, 33, 172);
/* oklch */ color: oklch(46.3% 0.206 309.7);
Tailwind
colors: {
  custom: {
    50: '#a668c6',
    500: '#7b21ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b21ac;
$custom-light: #a668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21ac",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 278.849,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46266,
    "c": 0.20597,
    "h": 309.7
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#7B21AC
secondary
#85C762
accent
#EB3D7A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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