#7B21D4#7B21D4

#7B21D4 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.6% C 0.243 H 299.5°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7B21D4
RGBrgb(123, 33, 212)
HSLhsl(270, 73%, 48%)
HSVhsv(270, 84%, 83%)
CMYKcmyk(42%, 84.4%, 0%, 16.9%)
CIE-LABlab(37.94, 67.83, -73.78)
CIE-LCHlch(37.94, 100.22, 312.59°)
OKLaboklab(49.65% 0.1194 -0.2112)
OKLCHoklch(49.65% 0.243 299.5)
XYZxyz(20.5929, 10.0519, 63.1298)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21D4 #7AD421
analogous
#2221D4 #7B21D4 #D421D3
triadic
#7B21D4 #D47B21 #21D47B
tetradic
#7B21D4 #D42221 #7AD421 #21D3D4
square
#7B21D4 #D42221 #7AD421 #21D3D4
split-complementary
#7B21D4 #D3D421 #21D422
monochromatic
#3E116A #5C199F #7B21D4 #9A4FE4 #B884EC

Accessibility & contrast

On white

6.98
#7B21D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7B21D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B21D4
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21D4#FFFFFF#000000##FFFFFF
##7B21D41.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D9
Deuteranopia (green-blind)
#0058D1
Tritanopia (blue-blind)
#65577F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b21d4;
/* rgb */ color: rgb(123, 33, 212);
/* oklch */ color: oklch(49.6% 0.243 299.5);
Tailwind
colors: {
  custom: {
    50: '#aa6be2',
    500: '#7b21d4',
    950: '#000000',
  },
}
SCSS
$custom: #7b21d4;
$custom-light: #aa6be2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21d4",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 212
  },
  "hsl": {
    "h": 270.168,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49648,
    "c": 0.24265,
    "h": 299.5
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

primary
#7B21D4
secondary
#A8D57C
accent
#F03893
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7B21D4

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

Preview Lab → · Contrast checker → · Palette generator →

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