#7E21B2#7E21B2

#7E21B2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.1% C 0.212 H 309.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7E21B2
RGBrgb(126, 33, 178)
HSLhsl(278, 69%, 41%)
HSVhsv(278, 81%, 70%)
CMYKcmyk(29.2%, 81.5%, 0%, 30.2%)
CIE-LABlab(35.47, 60.84, -57.86)
CIE-LCHlch(35.47, 83.96, 316.44°)
OKLaboklab(47.15% 0.1342 -0.1644)
OKLCHoklch(47.15% 0.212 309.2)
XYZxyz(17.1823, 8.7380, 42.8923)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E21B2 #55B221
analogous
#3621B2 #7E21B2 #B2219E
triadic
#7E21B2 #B27E21 #21B27E
tetradic
#7E21B2 #B23621 #55B221 #219EB2
square
#7E21B2 #B23621 #55B221 #219EB2
split-complementary
#7E21B2 #9EB221 #21B236
monochromatic
#350E4B #59177E #7E21B2 #9F36DA #B86AE3

Accessibility & contrast

On white

7.64
#7E21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E21B2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E21B2#FFFFFF#000000##FFFFFF
##7E21B21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e21b2;
/* rgb */ color: rgb(126, 33, 178);
/* oklch */ color: oklch(47.1% 0.212 309.2);
Tailwind
colors: {
  custom: {
    50: '#a969ca',
    500: '#7e21b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e21b2;
$custom-light: #a969ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e21b2",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 278.483,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47148,
    "c": 0.21222,
    "h": 309.2
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#7E21B2
secondary
#89C966
accent
#EC3C7B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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