#7D21BB#7D21BB

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

Color values

HEX#7D21BB
RGBrgb(125, 33, 187)
HSLhsl(276, 70%, 43%)
HSVhsv(276, 82%, 73%)
CMYKcmyk(33.2%, 82.4%, 0%, 26.7%)
CIE-LABlab(36.05, 62.60, -62.26)
CIE-LCHlch(36.05, 88.29, 315.16°)
OKLaboklab(47.75% 0.1304 -0.1773)
OKLCHoklch(47.75% 0.22 306.3)
XYZxyz(17.9690, 9.0357, 47.8015)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21BB #5FBB21
analogous
#3021BB #7D21BB #BB21AC
triadic
#7D21BB #BB7D21 #21BB7D
tetradic
#7D21BB #BB3021 #5FBB21 #21ACBB
square
#7D21BB #BB3021 #5FBB21 #21ACBB
split-complementary
#7D21BB #ACBB21 #21BB30
monochromatic
#370F53 #5A1887 #7D21BB #9C3DDD #B771E6

Accessibility & contrast

On white

7.48
#7D21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7D21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21BB
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21BB#FFFFFF#000000##FFFFFF
##7D21BB1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d21bb;
/* rgb */ color: rgb(125, 33, 187);
/* oklch */ color: oklch(47.7% 0.220 306.3);
Tailwind
colors: {
  custom: {
    50: '#a969d0',
    500: '#7d21bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d21bb;
$custom-light: #a969d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21bb",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 275.844,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47745,
    "c": 0.22011,
    "h": 306.3
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#7D21BB
secondary
#92CC6B
accent
#ED3B83
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7D21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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