#6E21AC#6E21AC

#6E21AC is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.6% C 0.203 H 304.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#6E21AC
RGBrgb(110, 33, 172)
HSLhsl(273, 68%, 40%)
HSVhsv(273, 81%, 67%)
CMYKcmyk(36%, 80.8%, 0%, 32.5%)
CIE-LABlab(32.66, 56.93, -58.97)
CIE-LCHlch(32.66, 81.96, 313.99°)
OKLaboklab(44.55% 0.1133 -0.1682)
OKLCHoklch(44.55% 0.203 304)
XYZxyz(14.4189, 7.3813, 39.6868)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E21AC #5FAC21
analogous
#2821AC #6E21AC #AC21A5
triadic
#6E21AC #AC6E21 #21AC6E
tetradic
#6E21AC #AC2821 #5FAC21 #21A5AC
square
#6E21AC #AC2821 #5FAC21 #21A5AC
split-complementary
#6E21AC #A5AC21 #21AC28
monochromatic
#2C0D45 #4D1779 #6E21AC #8E32D8 #AA66E2

Accessibility & contrast

On white

8.48
#6E21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6E21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E21AC
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E21AC#FFFFFF#000000##FFFFFF
##6E21AC1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#624767
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6e21ac;
/* rgb */ color: rgb(110, 33, 172);
/* oklch */ color: oklch(44.6% 0.203 304.0);
Tailwind
colors: {
  custom: {
    50: '#9e67c6',
    500: '#6e21ac',
    950: '#000000',
  },
}
SCSS
$custom: #6e21ac;
$custom-light: #9e67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6e21ac",
  "rgb": {
    "r": 110,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 273.237,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44551,
    "c": 0.20283,
    "h": 304
  },
  "luminance": 0.07381
}

Semantic roles & 50–950 ramp

primary
#6E21AC
secondary
#8FC762
accent
#EB3D8B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6E21AC

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

Preview Lab → · Contrast checker → · Palette generator →

#6E21AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva