#7B21AA#7B21AA

#7B21AA is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.204 H 310.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7B21AA
RGBrgb(123, 33, 170)
HSLhsl(279, 67%, 40%)
HSVhsv(279, 81%, 67%)
CMYKcmyk(27.6%, 80.6%, 0%, 33.3%)
CIE-LABlab(34.40, 58.65, -54.85)
CIE-LCHlch(34.40, 80.30, 316.91°)
OKLaboklab(46.11% 0.1321 -0.1557)
OKLCHoklch(46.11% 0.204 310.3)
XYZxyz(15.9665, 8.2013, 38.7643)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21AA #50AA21
analogous
#3621AA #7B21AA #AA2195
triadic
#7B21AA #AA7B21 #21AA7B
tetradic
#7B21AA #AA3621 #50AA21 #2195AA
square
#7B21AA #AA3621 #50AA21 #2195AA
split-complementary
#7B21AA #95AA21 #21AA36
monochromatic
#310D43 #561777 #7B21AA #9E31D7 #B664E1

Accessibility & contrast

On white

7.95
#7B21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7B21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21AA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21AA#FFFFFF#000000##FFFFFF
##7B21AA1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#744466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b21aa;
/* rgb */ color: rgb(123, 33, 170);
/* oklch */ color: oklch(46.1% 0.204 310.3);
Tailwind
colors: {
  custom: {
    50: '#a668c4',
    500: '#7b21aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b21aa;
$custom-light: #a668c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21aa",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 279.416,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46109,
    "c": 0.20416,
    "h": 310.3
  },
  "luminance": 0.08201
}

Semantic roles & 50–950 ramp

primary
#7B21AA
secondary
#83C661
accent
#EA3D79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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