#6C217F#6C217F

#6C217F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.159 H 318.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#6C217F
RGBrgb(108, 33, 127)
HSLhsl(288, 59%, 31%)
HSVhsv(288, 74%, 50%)
CMYKcmyk(15%, 74%, 0%, 50.2%)
CIE-LABlab(28.92, 46.72, -37.43)
CIE-LCHlch(28.92, 59.86, 321.30°)
OKLaboklab(40.78% 0.1194 -0.105)
OKLCHoklch(40.78% 0.159 318.7)
XYZxyz(10.5584, 5.8087, 20.6396)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C217F #347F21
analogous
#3D217F #6C217F #7F2163
triadic
#6C217F #7F6C21 #217F6C
tetradic
#6C217F #7F3D21 #347F21 #21637F
square
#6C217F #7F3D21 #347F21 #21637F
split-complementary
#6C217F #637F21 #217F3D
monochromatic
#19081E #43144E #6C217F #952EB0 #B54AD0

Accessibility & contrast

On white

9.72
#6C217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C217F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C217F#FFFFFF#000000##FFFFFF
##6C217F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#26477D
Tritanopia (blue-blind)
#6C344E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c217f;
/* rgb */ color: rgb(108, 33, 127);
/* oklch */ color: oklch(40.8% 0.159 318.7);
Tailwind
colors: {
  custom: {
    50: '#9964a5',
    500: '#6c217f',
    950: '#000000',
  },
}
SCSS
$custom: #6c217f;
$custom-light: #9964a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c217f",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 287.872,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40781,
    "c": 0.15904,
    "h": 318.7
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#6C217F
secondary
#5FB24A
accent
#E24665
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6C217F

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

Preview Lab → · Contrast checker → · Palette generator →

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