#6C217D#6C217D

#6C217D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.6% C 0.157 H 319.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#6C217D
RGBrgb(108, 33, 125)
HSLhsl(289, 58%, 31%)
HSVhsv(289, 74%, 49%)
CMYKcmyk(13.6%, 73.6%, 0%, 51%)
CIE-LABlab(28.79, 46.31, -36.39)
CIE-LCHlch(28.79, 58.90, 321.84°)
OKLaboklab(40.64% 0.1196 -0.102)
OKLCHoklch(40.64% 0.157 319.5)
XYZxyz(10.4294, 5.7570, 19.9599)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C217D #327D21
analogous
#3E217D #6C217D #7D2160
triadic
#6C217D #7D6C21 #217D6C
tetradic
#6C217D #7D3E21 #327D21 #21607D
square
#6C217D #7D3E21 #327D21 #21607D
split-complementary
#6C217D #607D21 #217D3E
monochromatic
#18071C #42144D #6C217D #962EAD #B649CF

Accessibility & contrast

On white

9.76
#6C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6C217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C217D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C217D#FFFFFF#000000##FFFFFF
##6C217D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#28467B
Tritanopia (blue-blind)
#6C334D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c217d;
/* rgb */ color: rgb(108, 33, 125);
/* oklch */ color: oklch(40.6% 0.157 319.5);
Tailwind
colors: {
  custom: {
    50: '#9964a3',
    500: '#6c217d',
    950: '#000000',
  },
}
SCSS
$custom: #6c217d;
$custom-light: #9964a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c217d",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 288.913,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40643,
    "c": 0.15716,
    "h": 319.5
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#6C217D
secondary
#5DB04A
accent
#E14663
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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