#7A21BB#7A21BB

#7A21BB is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.4% C 0.219 H 305.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7A21BB
RGBrgb(122, 33, 187)
HSLhsl(275, 70%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(34.8%, 82.4%, 0%, 26.7%)
CIE-LABlab(35.62, 62.14, -62.98)
CIE-LCHlch(35.62, 88.48, 314.62°)
OKLaboklab(47.36% 0.1262 -0.1796)
OKLCHoklch(47.36% 0.219 305.1)
XYZxyz(17.5375, 8.8132, 47.7813)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21BB #62BB21
analogous
#2D21BB #7A21BB #BB21AF
triadic
#7A21BB #BB7A21 #21BB7A
tetradic
#7A21BB #BB2D21 #62BB21 #21AFBB
square
#7A21BB #BB2D21 #62BB21 #21AFBB
split-complementary
#7A21BB #AFBB21 #21BB2D
monochromatic
#360F53 #581887 #7A21BB #993DDD #B471E6

Accessibility & contrast

On white

7.60
#7A21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21BB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21BB#FFFFFF#000000##FFFFFF
##7A21BB1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#6D4C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a21bb;
/* rgb */ color: rgb(122, 33, 187);
/* oklch */ color: oklch(47.4% 0.219 305.1);
Tailwind
colors: {
  custom: {
    50: '#a769d1',
    500: '#7a21bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a21bb;
$custom-light: #a769d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21bb",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 274.675,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47356,
    "c": 0.21945,
    "h": 305.1
  },
  "luminance": 0.08813
}

Semantic roles & 50–950 ramp

primary
#7A21BB
secondary
#94CC6B
accent
#ED3B86
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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