#6A217A#6A217A

#6A217A is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.1% C 0.153 H 319.8°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#6A217A
RGBrgb(106, 33, 122)
HSLhsl(289, 57%, 30%)
HSVhsv(289, 73%, 48%)
CMYKcmyk(13.1%, 73%, 0%, 52.2%)
CIE-LABlab(28.27, 45.24, -35.35)
CIE-LCHlch(28.27, 57.41, 321.99°)
OKLaboklab(40.14% 0.1172 -0.099)
OKLCHoklch(40.14% 0.153 319.8)
XYZxyz(10.0001, 5.5575, 18.9545)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A217A #317A21
analogous
#3D217A #6A217A #7A215E
triadic
#6A217A #7A6A21 #217A6A
tetradic
#6A217A #7A3D21 #317A21 #215E7A
square
#6A217A #7A3D21 #317A21 #215E7A
split-complementary
#6A217A #5E7A21 #217A3D
monochromatic
#16071A #40144A #6A217A #942EAA #B548CD

Accessibility & contrast

On white

9.95
#6A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6A217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A217A
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A217A#FFFFFF#000000##FFFFFF
##6A217A1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#284578
Tritanopia (blue-blind)
#6A324B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a217a;
/* rgb */ color: rgb(106, 33, 122);
/* oklch */ color: oklch(40.1% 0.153 319.8);
Tailwind
colors: {
  custom: {
    50: '#9864a1',
    500: '#6a217a',
    950: '#000000',
  },
}
SCSS
$custom: #6a217a;
$custom-light: #9864a1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a217a",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 289.213,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40141,
    "c": 0.15343,
    "h": 319.8
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#6A217A
secondary
#5CAD4A
accent
#E14763
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060F
muted
#7E7A7E

Preview Lab

Preview with #6A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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