#7C21BB#7C21BB

#7C21BB is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.6% C 0.220 H 305.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7C21BB
RGBrgb(124, 33, 187)
HSLhsl(275, 70%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(33.7%, 82.4%, 0%, 26.7%)
CIE-LABlab(35.91, 62.45, -62.50)
CIE-LCHlch(35.91, 88.35, 314.98°)
OKLaboklab(47.62% 0.129 -0.1781)
OKLCHoklch(47.62% 0.22 305.9)
XYZxyz(17.8237, 8.9608, 47.7947)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C21BB #60BB21
analogous
#2F21BB #7C21BB #BB21AD
triadic
#7C21BB #BB7C21 #21BB7C
tetradic
#7C21BB #BB2F21 #60BB21 #21ADBB
square
#7C21BB #BB2F21 #60BB21 #21ADBB
split-complementary
#7C21BB #ADBB21 #21BB2F
monochromatic
#370F53 #5A1887 #7C21BB #9B3DDD #B671E6

Accessibility & contrast

On white

7.52
#7C21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C21BB
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C21BB#FFFFFF#000000##FFFFFF
##7C21BB1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#704C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c21bb;
/* rgb */ color: rgb(124, 33, 187);
/* oklch */ color: oklch(47.6% 0.220 305.9);
Tailwind
colors: {
  custom: {
    50: '#a869d0',
    500: '#7c21bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c21bb;
$custom-light: #a869d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c21bb",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 275.455,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47615,
    "c": 0.21988,
    "h": 305.9
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#7C21BB
secondary
#93CC6B
accent
#ED3B84
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7C21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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