#6C217E#6C217E

#6C217E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.158 H 319.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#6C217E
RGBrgb(108, 33, 126)
HSLhsl(288, 58%, 31%)
HSVhsv(288, 74%, 49%)
CMYKcmyk(14.3%, 73.8%, 0%, 50.6%)
CIE-LABlab(28.86, 46.51, -36.91)
CIE-LCHlch(28.86, 59.38, 321.57°)
OKLaboklab(40.71% 0.1195 -0.1035)
OKLCHoklch(40.71% 0.158 319.1)
XYZxyz(10.4936, 5.7827, 20.2981)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C217E #337E21
analogous
#3D217E #6C217E #7E2161
triadic
#6C217E #7E6C21 #217E6C
tetradic
#6C217E #7E3D21 #337E21 #21617E
square
#6C217E #7E3D21 #337E21 #21617E
split-complementary
#6C217E #617E21 #217E3D
monochromatic
#19081D #42144E #6C217E #962EAE #B64AD0

Accessibility & contrast

On white

9.74
#6C217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6C217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C217E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C217E#FFFFFF#000000##FFFFFF
##6C217E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#27467C
Tritanopia (blue-blind)
#6C334D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c217e;
/* rgb */ color: rgb(108, 33, 126);
/* oklch */ color: oklch(40.7% 0.158 319.1);
Tailwind
colors: {
  custom: {
    50: '#9964a4',
    500: '#6c217e',
    950: '#000000',
  },
}
SCSS
$custom: #6c217e;
$custom-light: #9964a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c217e",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 288.387,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.1581,
    "h": 319.1
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#6C217E
secondary
#5EB14A
accent
#E24664
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C217E

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

Preview Lab → · Contrast checker → · Palette generator →

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