#7B21B3#7B21B3

#7B21B3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.212 H 307.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7B21B3
RGBrgb(123, 33, 179)
HSLhsl(277, 69%, 42%)
HSVhsv(277, 82%, 70%)
CMYKcmyk(31.3%, 81.6%, 0%, 29.8%)
CIE-LABlab(35.11, 60.56, -59.07)
CIE-LCHlch(35.11, 84.60, 315.72°)
OKLaboklab(46.83% 0.1298 -0.168)
OKLCHoklch(46.83% 0.212 307.7)
XYZxyz(16.8472, 8.5536, 43.4026)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B21B3 #59B321
analogous
#3221B3 #7B21B3 #B321A2
triadic
#7B21B3 #B37B21 #21B37B
tetradic
#7B21B3 #B33221 #59B321 #21A2B3
square
#7B21B3 #B33221 #59B321 #21A2B3
split-complementary
#7B21B3 #A2B321 #21B332
monochromatic
#340E4C #57177F #7B21B3 #9C37DA #B56BE4

Accessibility & contrast

On white

7.75
#7B21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7B21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B21B3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B21B3#FFFFFF#000000##FFFFFF
##7B21B31.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#72486B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7b21b3;
/* rgb */ color: rgb(123, 33, 179);
/* oklch */ color: oklch(46.8% 0.212 307.7);
Tailwind
colors: {
  custom: {
    50: '#a769cb',
    500: '#7b21b3',
    950: '#000000',
  },
}
SCSS
$custom: #7b21b3;
$custom-light: #a769cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b21b3",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 276.986,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46827,
    "c": 0.21235,
    "h": 307.7
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#7B21B3
secondary
#8CCA66
accent
#EC3C7F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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