#7B21BB#7B21BB

#7B21BB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.5% C 0.220 H 305.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7B21BB
RGBrgb(123, 33, 187)
HSLhsl(275, 70%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(34.2%, 82.4%, 0%, 26.7%)
CIE-LABlab(35.77, 62.29, -62.74)
CIE-LCHlch(35.77, 88.41, 314.80°)
OKLaboklab(47.49% 0.1276 -0.1788)
OKLCHoklch(47.49% 0.22 305.5)
XYZxyz(17.6799, 8.8867, 47.7880)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21BB #61BB21
analogous
#2E21BB #7B21BB #BB21AE
triadic
#7B21BB #BB7B21 #21BB7B
tetradic
#7B21BB #BB2E21 #61BB21 #21AEBB
square
#7B21BB #BB2E21 #61BB21 #21AEBB
split-complementary
#7B21BB #AEBB21 #21BB2E
monochromatic
#370F53 #591887 #7B21BB #9A3DDD #B571E6

Accessibility & contrast

On white

7.56
#7B21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7B21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21BB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21BB#FFFFFF#000000##FFFFFF
##7B21BB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#6F4C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b21bb;
/* rgb */ color: rgb(123, 33, 187);
/* oklch */ color: oklch(47.5% 0.220 305.5);
Tailwind
colors: {
  custom: {
    50: '#a769d0',
    500: '#7b21bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b21bb;
$custom-light: #a769d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21bb",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 275.065,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47485,
    "c": 0.21966,
    "h": 305.5
  },
  "luminance": 0.08887
}

Semantic roles & 50–950 ramp

primary
#7B21BB
secondary
#94CC6B
accent
#ED3B85
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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