#6B21AC#6B21AC

#6B21AC is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.2% C 0.202 H 302.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#6B21AC
RGBrgb(107, 33, 172)
HSLhsl(272, 68%, 40%)
HSVhsv(272, 81%, 67%)
CMYKcmyk(37.8%, 80.8%, 0%, 32.5%)
CIE-LABlab(32.24, 56.45, -59.67)
CIE-LCHlch(32.24, 82.14, 313.41°)
OKLaboklab(44.17% 0.109 -0.1704)
OKLCHoklch(44.17% 0.202 302.6)
XYZxyz(14.0519, 7.1920, 39.6696)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B21AC #62AC21
analogous
#2521AC #6B21AC #AC21A8
triadic
#6B21AC #AC6B21 #21AC6B
tetradic
#6B21AC #AC2521 #62AC21 #21A8AC
square
#6B21AC #AC2521 #62AC21 #21A8AC
split-complementary
#6B21AC #A8AC21 #21AC25
monochromatic
#2B0D45 #4B1779 #6B21AC #8A32D8 #A866E2

Accessibility & contrast

On white

8.61
#6B21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6B21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B21AC
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B21AC#FFFFFF#000000##FFFFFF
##6B21AC1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#5D4767
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b21ac;
/* rgb */ color: rgb(107, 33, 172);
/* oklch */ color: oklch(44.2% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#9c66c6',
    500: '#6b21ac',
    950: '#000000',
  },
}
SCSS
$custom: #6b21ac;
$custom-light: #9c66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b21ac",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 271.942,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4417,
    "c": 0.20224,
    "h": 302.6
  },
  "luminance": 0.07192
}

Semantic roles & 50–950 ramp

primary
#6B21AC
secondary
#91C762
accent
#EB3D8E
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6B21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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