#7C21B2#7C21B2

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

Color values

HEX#7C21B2
RGBrgb(124, 33, 178)
HSLhsl(278, 69%, 41%)
HSVhsv(278, 81%, 70%)
CMYKcmyk(30.3%, 81.5%, 0%, 30.2%)
CIE-LABlab(35.18, 60.51, -58.36)
CIE-LCHlch(35.18, 84.07, 316.04°)
OKLaboklab(46.88% 0.1315 -0.1659)
OKLCHoklch(46.88% 0.212 308.4)
XYZxyz(16.8902, 8.5874, 42.8786)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C21B2 #57B221
analogous
#3421B2 #7C21B2 #B221A0
triadic
#7C21B2 #B27C21 #21B27C
tetradic
#7C21B2 #B23421 #57B221 #21A0B2
square
#7C21B2 #B23421 #57B221 #21A0B2
split-complementary
#7C21B2 #A0B221 #21B234
monochromatic
#340E4B #58177E #7C21B2 #9D36DA #B66AE3

Accessibility & contrast

On white

7.73
#7C21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C21B2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C21B2#FFFFFF#000000##FFFFFF
##7C21B21.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#73486B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c21b2;
/* rgb */ color: rgb(124, 33, 178);
/* oklch */ color: oklch(46.9% 0.212 308.4);
Tailwind
colors: {
  custom: {
    50: '#a769ca',
    500: '#7c21b2',
    950: '#000000',
  },
}
SCSS
$custom: #7c21b2;
$custom-light: #a769ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7c21b2",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 277.655,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46879,
    "c": 0.21169,
    "h": 308.4
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

primary
#7C21B2
secondary
#8BC966
accent
#EC3C7E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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