#6D217E#6D217E

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

Color values

HEX#6D217E
RGBrgb(109, 33, 126)
HSLhsl(289, 58%, 31%)
HSVhsv(289, 74%, 49%)
CMYKcmyk(13.5%, 73.8%, 0%, 50.6%)
CIE-LABlab(29.02, 46.74, -36.64)
CIE-LCHlch(29.02, 59.39, 321.91°)
OKLaboklab(40.86% 0.1208 -0.1027)
OKLCHoklch(40.86% 0.159 319.6)
XYZxyz(10.6159, 5.8458, 20.3038)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D217E #327E21
analogous
#3E217E #6D217E #7E2160
triadic
#6D217E #7E6D21 #217E6D
tetradic
#6D217E #7E3E21 #327E21 #21607E
square
#6D217E #7E3E21 #327E21 #21607E
split-complementary
#6D217E #607E21 #217E3E
monochromatic
#19081D #43144E #6D217E #972EAE #B74AD0

Accessibility & contrast

On white

9.68
#6D217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6D217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D217E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D217E#FFFFFF#000000##FFFFFF
##6D217E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d217e;
/* rgb */ color: rgb(109, 33, 126);
/* oklch */ color: oklch(40.9% 0.159 319.6);
Tailwind
colors: {
  custom: {
    50: '#9a64a4',
    500: '#6d217e',
    950: '#000000',
  },
}
SCSS
$custom: #6d217e;
$custom-light: #9a64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6d217e",
  "rgb": {
    "r": 109,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 289.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40861,
    "c": 0.15854,
    "h": 319.6
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#6D217E
secondary
#5DB14A
accent
#E24663
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6D217E

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

Preview Lab → · Contrast checker → · Palette generator →

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