#7B21BD#7B21BD

#7B21BD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.7% C 0.222 H 305.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7B21BD
RGBrgb(123, 33, 189)
HSLhsl(275, 70%, 44%)
HSVhsv(275, 83%, 74%)
CMYKcmyk(34.9%, 82.5%, 0%, 25.9%)
CIE-LABlab(35.93, 62.73, -63.65)
CIE-LCHlch(35.93, 89.36, 314.58°)
OKLaboklab(47.65% 0.127 -0.1815)
OKLCHoklch(47.65% 0.222 305)
XYZxyz(17.8954, 8.9729, 48.9234)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21BD #63BD21
analogous
#2D21BD #7B21BD #BD21B1
triadic
#7B21BD #BD7B21 #21BD7B
tetradic
#7B21BD #BD2D21 #63BD21 #21B1BD
square
#7B21BD #BD2D21 #63BD21 #21B1BD
split-complementary
#7B21BD #B1BD21 #21BD2D
monochromatic
#370F55 #591889 #7B21BD #9A3EDD #B572E6

Accessibility & contrast

On white

7.51
#7B21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21BD
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21BD#FFFFFF#000000##FFFFFF
##7B21BD1.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#6E4D71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b21bd;
/* rgb */ color: rgb(123, 33, 189);
/* oklch */ color: oklch(47.7% 0.222 305.0);
Tailwind
colors: {
  custom: {
    50: '#a869d2',
    500: '#7b21bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b21bd;
$custom-light: #a869d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21bd",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 274.615,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47652,
    "c": 0.2215,
    "h": 305
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#7B21BD
secondary
#95CD6D
accent
#ED3B86
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7B21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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