#7B21A2#7B21A2

#7B21A2 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.197 H 312.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7B21A2
RGBrgb(123, 33, 162)
HSLhsl(282, 66%, 38%)
HSVhsv(282, 80%, 64%)
CMYKcmyk(24.1%, 79.6%, 0%, 36.5%)
CIE-LABlab(33.79, 56.98, -51.03)
CIE-LCHlch(33.79, 76.49, 318.15°)
OKLaboklab(45.49% 0.1339 -0.1444)
OKLCHoklch(45.49% 0.197 312.8)
XYZxyz(15.2326, 7.9078, 34.8993)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21A2 #48A221
analogous
#3A21A2 #7B21A2 #A22189
triadic
#7B21A2 #A27B21 #21A27B
tetradic
#7B21A2 #A23A21 #48A221 #2189A2
square
#7B21A2 #A23A21 #48A221 #2189A2
split-complementary
#7B21A2 #89A221 #21A23A
monochromatic
#2E0C3C #54176F #7B21A2 #A12CD4 #B85FDE

Accessibility & contrast

On white

8.14
#7B21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21A2
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21A2#FFFFFF#000000##FFFFFF
##7B21A21.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0B519F
Tritanopia (blue-blind)
#774062
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b21a2;
/* rgb */ color: rgb(123, 33, 162);
/* oklch */ color: oklch(45.5% 0.197 312.8);
Tailwind
colors: {
  custom: {
    50: '#a668be',
    500: '#7b21a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b21a2;
$custom-light: #a668be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21a2",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 281.86,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45491,
    "c": 0.19691,
    "h": 312.8
  },
  "luminance": 0.07907
}

Semantic roles & 50–950 ramp

primary
#7B21A2
secondary
#7BC35C
accent
#E93F72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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