#7D21BD#7D21BD

#7D21BD is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.222 H 305.8°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7D21BD
RGBrgb(125, 33, 189)
HSLhsl(275, 70%, 44%)
HSVhsv(275, 83%, 74%)
CMYKcmyk(33.9%, 82.5%, 0%, 25.9%)
CIE-LABlab(36.22, 63.03, -63.17)
CIE-LCHlch(36.22, 89.24, 314.94°)
OKLaboklab(47.91% 0.1298 -0.18)
OKLCHoklch(47.91% 0.222 305.8)
XYZxyz(18.1846, 9.1220, 48.9370)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21BD #61BD21
analogous
#2F21BD #7D21BD #BD21AF
triadic
#7D21BD #BD7D21 #21BD7D
tetradic
#7D21BD #BD2F21 #61BD21 #21AFBD
square
#7D21BD #BD2F21 #61BD21 #21AFBD
split-complementary
#7D21BD #AFBD21 #21BD2F
monochromatic
#380F55 #5B1889 #7D21BD #9C3EDD #B772E6

Accessibility & contrast

On white

7.44
#7D21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7D21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21BD
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21BD#FFFFFF#000000##FFFFFF
##7D21BD1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#714C71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d21bd;
/* rgb */ color: rgb(125, 33, 189);
/* oklch */ color: oklch(47.9% 0.222 305.8);
Tailwind
colors: {
  custom: {
    50: '#a969d2',
    500: '#7d21bd',
    950: '#000000',
  },
}
SCSS
$custom: #7d21bd;
$custom-light: #a969d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21bd",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 275.385,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4791,
    "c": 0.22193,
    "h": 305.8
  },
  "luminance": 0.09122
}

Semantic roles & 50–950 ramp

primary
#7D21BD
secondary
#94CD6D
accent
#ED3B84
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7D21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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