#7D21C2#7D21C2

#7D21C2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.3% C 0.226 H 304.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7D21C2
RGBrgb(125, 33, 194)
HSLhsl(274, 71%, 45%)
HSVhsv(274, 83%, 76%)
CMYKcmyk(35.6%, 83%, 0%, 23.9%)
CIE-LABlab(36.64, 64.12, -65.42)
CIE-LCHlch(36.64, 91.60, 314.42°)
OKLaboklab(48.33% 0.1283 -0.1866)
OKLCHoklch(48.33% 0.226 304.5)
XYZxyz(18.7367, 9.3428, 51.8447)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21C2 #66C221
analogous
#2D21C2 #7D21C2 #C221B6
triadic
#7D21C2 #C27D21 #21C27D
tetradic
#7D21C2 #C22D21 #66C221 #21B6C2
square
#7D21C2 #C22D21 #66C221 #21B6C2
split-complementary
#7D21C2 #B6C221 #21C22D
monochromatic
#3A0F59 #5B188E #7D21C2 #9B41DF #B776E8

Accessibility & contrast

On white

7.32
#7D21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7D21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21C2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21C2#FFFFFF#000000##FFFFFF
##7D21C21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#6F4F74
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d21c2;
/* rgb */ color: rgb(125, 33, 194);
/* oklch */ color: oklch(48.3% 0.226 304.5);
Tailwind
colors: {
  custom: {
    50: '#a96ad6',
    500: '#7d21c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d21c2;
$custom-light: #a96ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21c2",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 274.286,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48329,
    "c": 0.22649,
    "h": 304.5
  },
  "luminance": 0.09343
}

Semantic roles & 50–950 ramp

primary
#7D21C2
secondary
#99CF70
accent
#EE3A87
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7D21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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