#6A217E#6A217E

#6A217E is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.4% C 0.157 H 318.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#6A217E
RGBrgb(106, 33, 126)
HSLhsl(287, 58%, 31%)
HSVhsv(287, 74%, 49%)
CMYKcmyk(15.9%, 73.8%, 0%, 50.6%)
CIE-LABlab(28.53, 46.06, -37.45)
CIE-LCHlch(28.53, 59.36, 320.89°)
OKLaboklab(40.42% 0.1169 -0.1051)
OKLCHoklch(40.42% 0.157 318)
XYZxyz(10.2531, 5.6587, 20.2868)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A217E #357E21
analogous
#3B217E #6A217E #7E2163
triadic
#6A217E #7E6A21 #217E6A
tetradic
#6A217E #7E3B21 #357E21 #21637E
square
#6A217E #7E3B21 #357E21 #21637E
split-complementary
#6A217E #637E21 #217E3B
monochromatic
#18081D #41144E #6A217E #932EAE #B34AD0

Accessibility & contrast

On white

9.85
#6A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6A217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A217E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A217E#FFFFFF#000000##FFFFFF
##6A217E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#25467C
Tritanopia (blue-blind)
#69334D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a217e;
/* rgb */ color: rgb(106, 33, 126);
/* oklch */ color: oklch(40.4% 0.157 318.0);
Tailwind
colors: {
  custom: {
    50: '#9864a4',
    500: '#6a217e',
    950: '#000000',
  },
}
SCSS
$custom: #6a217e;
$custom-light: #9864a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a217e",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 287.097,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40417,
    "c": 0.15724,
    "h": 318
  },
  "luminance": 0.05658
}

Semantic roles & 50–950 ramp

primary
#6A217E
secondary
#60B14A
accent
#E24668
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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