#7B21C2#7B21C2

#7B21C2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.1% C 0.226 H 303.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7B21C2
RGBrgb(123, 33, 194)
HSLhsl(274, 71%, 45%)
HSVhsv(274, 83%, 76%)
CMYKcmyk(36.6%, 83%, 0%, 23.9%)
CIE-LABlab(36.35, 63.83, -65.89)
CIE-LCHlch(36.35, 91.74, 314.09°)
OKLaboklab(48.08% 0.1254 -0.1881)
OKLCHoklch(48.08% 0.226 303.7)
XYZxyz(18.4475, 9.1937, 51.8312)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21C2 #68C221
analogous
#2A21C2 #7B21C2 #C221B9
triadic
#7B21C2 #C27B21 #21C27B
tetradic
#7B21C2 #C22A21 #68C221 #21B9C2
square
#7B21C2 #C22A21 #68C221 #21B9C2
split-complementary
#7B21C2 #B9C221 #21C22A
monochromatic
#390F59 #5A188E #7B21C2 #9941DF #B576E8

Accessibility & contrast

On white

7.40
#7B21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7B21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21C2
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21C2#FFFFFF#000000##FFFFFF
##7B21C21.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#6C4F74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b21c2;
/* rgb */ color: rgb(123, 33, 194);
/* oklch */ color: oklch(48.1% 0.226 303.7);
Tailwind
colors: {
  custom: {
    50: '#a869d6',
    500: '#7b21c2',
    950: '#000000',
  },
}
SCSS
$custom: #7b21c2;
$custom-light: #a869d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21c2",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 273.54,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48075,
    "c": 0.22608,
    "h": 303.7
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#7B21C2
secondary
#9ACF70
accent
#EE3A89
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7B21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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