#7C21BD#7C21BD

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

Color values

HEX#7C21BD
RGBrgb(124, 33, 189)
HSLhsl(275, 70%, 44%)
HSVhsv(275, 83%, 74%)
CMYKcmyk(34.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(36.07, 62.88, -63.41)
CIE-LCHlch(36.07, 89.30, 314.76°)
OKLaboklab(47.78% 0.1284 -0.1808)
OKLCHoklch(47.78% 0.222 305.4)
XYZxyz(18.0393, 9.0470, 48.9302)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C21BD #62BD21
analogous
#2E21BD #7C21BD #BD21B0
triadic
#7C21BD #BD7C21 #21BD7C
tetradic
#7C21BD #BD2E21 #62BD21 #21B0BD
square
#7C21BD #BD2E21 #62BD21 #21B0BD
split-complementary
#7C21BD #B0BD21 #21BD2E
monochromatic
#380F55 #5A1889 #7C21BD #9B3EDD #B672E6

Accessibility & contrast

On white

7.47
#7C21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C21BD
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C21BD#FFFFFF#000000##FFFFFF
##7C21BD1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c21bd;
/* rgb */ color: rgb(124, 33, 189);
/* oklch */ color: oklch(47.8% 0.222 305.4);
Tailwind
colors: {
  custom: {
    50: '#a869d2',
    500: '#7c21bd',
    950: '#000000',
  },
}
SCSS
$custom: #7c21bd;
$custom-light: #a869d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c21bd",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 275,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47781,
    "c": 0.22171,
    "h": 305.4
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#7C21BD
secondary
#95CD6D
accent
#ED3B85
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7C21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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