#7A21B3#7A21B3

#7A21B3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.7% C 0.212 H 307.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7A21B3
RGBrgb(122, 33, 179)
HSLhsl(277, 69%, 42%)
HSVhsv(277, 82%, 70%)
CMYKcmyk(31.8%, 81.6%, 0%, 29.8%)
CIE-LABlab(34.96, 60.40, -59.32)
CIE-LCHlch(34.96, 84.66, 315.52°)
OKLaboklab(46.7% 0.1284 -0.1688)
OKLCHoklch(46.7% 0.212 307.3)
XYZxyz(16.7048, 8.4802, 43.3959)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A21B3 #5AB321
analogous
#3121B3 #7A21B3 #B321A3
triadic
#7A21B3 #B37A21 #21B37A
tetradic
#7A21B3 #B33121 #5AB321 #21A3B3
square
#7A21B3 #B33121 #5AB321 #21A3B3
split-complementary
#7A21B3 #A3B321 #21B331
monochromatic
#340E4C #57177F #7A21B3 #9A37DA #B46BE4

Accessibility & contrast

On white

7.79
#7A21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A21B3
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A21B3#FFFFFF#000000##FFFFFF
##7A21B31.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#70486B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a21b3;
/* rgb */ color: rgb(122, 33, 179);
/* oklch */ color: oklch(46.7% 0.212 307.3);
Tailwind
colors: {
  custom: {
    50: '#a668cb',
    500: '#7a21b3',
    950: '#000000',
  },
}
SCSS
$custom: #7a21b3;
$custom-light: #a668cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a21b3",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 276.575,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46695,
    "c": 0.21211,
    "h": 307.3
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#7A21B3
secondary
#8DCA66
accent
#EC3C81
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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