#7B21AD#7B21AD

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

Color values

HEX#7B21AD
RGBrgb(123, 33, 173)
HSLhsl(279, 68%, 40%)
HSVhsv(279, 81%, 68%)
CMYKcmyk(28.9%, 80.9%, 0%, 32.2%)
CIE-LABlab(34.63, 59.28, -56.27)
CIE-LCHlch(34.63, 81.74, 316.49°)
OKLaboklab(46.35% 0.1314 -0.1598)
OKLCHoklch(46.35% 0.207 309.4)
XYZxyz(16.2535, 8.3161, 40.2760)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21AD #53AD21
analogous
#3521AD #7B21AD #AD2199
triadic
#7B21AD #AD7B21 #21AD7B
tetradic
#7B21AD #AD3521 #53AD21 #2199AD
square
#7B21AD #AD3521 #53AD21 #2199AD
split-complementary
#7B21AD #99AD21 #21AD35
monochromatic
#320D46 #56177A #7B21AD #9D33D8 #B666E2

Accessibility & contrast

On white

7.89
#7B21AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B21AD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21AD#FFFFFF#000000##FFFFFF
##7B21AD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#734568
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b21ad;
/* rgb */ color: rgb(123, 33, 173);
/* oklch */ color: oklch(46.3% 0.207 309.4);
Tailwind
colors: {
  custom: {
    50: '#a668c6',
    500: '#7b21ad',
    950: '#000000',
  },
}
SCSS
$custom: #7b21ad;
$custom-light: #a668c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21ad",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 173
  },
  "hsl": {
    "h": 278.571,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46345,
    "c": 0.20689,
    "h": 309.4
  },
  "luminance": 0.08316
}

Semantic roles & 50–950 ramp

primary
#7B21AD
secondary
#86C762
accent
#EB3D7B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B21AD

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

Preview Lab → · Contrast checker → · Palette generator →

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