#6C217B#6C217B

#6C217B is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.5% C 0.155 H 320.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#6C217B
RGBrgb(108, 33, 123)
HSLhsl(290, 58%, 31%)
HSVhsv(290, 73%, 48%)
CMYKcmyk(12.2%, 73.2%, 0%, 51.8%)
CIE-LABlab(28.66, 45.91, -35.34)
CIE-LCHlch(28.66, 57.93, 322.41°)
OKLaboklab(40.51% 0.1197 -0.0989)
OKLCHoklch(40.51% 0.155 320.4)
XYZxyz(10.3029, 5.7064, 19.2938)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C217B #307B21
analogous
#3F217B #6C217B #7B215D
triadic
#6C217B #7B6C21 #217B6C
tetradic
#6C217B #7B3F21 #307B21 #215D7B
square
#6C217B #7B3F21 #307B21 #215D7B
split-complementary
#6C217B #5D7B21 #217B3F
monochromatic
#17071A #42144B #6C217B #962EAB #B848CE

Accessibility & contrast

On white

9.81
#6C217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6C217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C217B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C217B#FFFFFF#000000##FFFFFF
##6C217B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#2A4679
Tritanopia (blue-blind)
#6D324C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c217b;
/* rgb */ color: rgb(108, 33, 123);
/* oklch */ color: oklch(40.5% 0.155 320.4);
Tailwind
colors: {
  custom: {
    50: '#9964a2',
    500: '#6c217b',
    950: '#000000',
  },
}
SCSS
$custom: #6c217b;
$custom-light: #9964a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c217b",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 290,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40507,
    "c": 0.15529,
    "h": 320.4
  },
  "luminance": 0.05706
}

Semantic roles & 50–950 ramp

primary
#6C217B
secondary
#5BAE4A
accent
#E14761
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C217B

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

Preview Lab → · Contrast checker → · Palette generator →

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