#7B21AE#7B21AE

#7B21AE is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.208 H 309.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7B21AE
RGBrgb(123, 33, 174)
HSLhsl(278, 68%, 41%)
HSVhsv(278, 81%, 68%)
CMYKcmyk(29.3%, 81%, 0%, 31.8%)
CIE-LABlab(34.71, 59.50, -56.74)
CIE-LCHlch(34.71, 82.21, 316.36°)
OKLaboklab(46.43% 0.1311 -0.1612)
OKLCHoklch(46.43% 0.208 309.1)
XYZxyz(16.3507, 8.3550, 40.7875)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21AE #54AE21
analogous
#3421AE #7B21AE #AE219A
triadic
#7B21AE #AE7B21 #21AE7B
tetradic
#7B21AE #AE3421 #54AE21 #219AAE
square
#7B21AE #AE3421 #54AE21 #219AAE
split-complementary
#7B21AE #9AAE21 #21AE34
monochromatic
#320D47 #57177B #7B21AE #9D34D8 #B667E2

Accessibility & contrast

On white

7.86
#7B21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21AE
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21AE#FFFFFF#000000##FFFFFF
##7B21AE1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0053AB
Tritanopia (blue-blind)
#734669
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b21ae;
/* rgb */ color: rgb(123, 33, 174);
/* oklch */ color: oklch(46.4% 0.208 309.1);
Tailwind
colors: {
  custom: {
    50: '#a768c7',
    500: '#7b21ae',
    950: '#000000',
  },
}
SCSS
$custom: #7b21ae;
$custom-light: #a768c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21ae",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 278.298,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.2078,
    "h": 309.1
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#7B21AE
secondary
#87C863
accent
#EB3D7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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