#6A217B#6A217B

#6A217B is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.2% C 0.154 H 319.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#6A217B
RGBrgb(106, 33, 123)
HSLhsl(289, 58%, 31%)
HSVhsv(289, 73%, 48%)
CMYKcmyk(13.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(28.33, 45.44, -35.88)
CIE-LCHlch(28.33, 57.90, 321.71°)
OKLaboklab(40.21% 0.1172 -0.1005)
OKLCHoklch(40.21% 0.154 319.4)
XYZxyz(10.0624, 5.5824, 19.2825)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A217B #327B21
analogous
#3D217B #6A217B #7B215F
triadic
#6A217B #7B6A21 #217B6A
tetradic
#6A217B #7B3D21 #327B21 #215F7B
square
#6A217B #7B3D21 #327B21 #215F7B
split-complementary
#6A217B #5F7B21 #217B3D
monochromatic
#17071A #40144B #6A217B #942EAB #B548CE

Accessibility & contrast

On white

9.92
#6A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6A217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A217B
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A217B#FFFFFF#000000##FFFFFF
##6A217B1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#284579
Tritanopia (blue-blind)
#6A324C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a217b;
/* rgb */ color: rgb(106, 33, 123);
/* oklch */ color: oklch(40.2% 0.154 319.4);
Tailwind
colors: {
  custom: {
    50: '#9864a2',
    500: '#6a217b',
    950: '#000000',
  },
}
SCSS
$custom: #6a217b;
$custom-light: #9864a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a217b",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 288.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40209,
    "c": 0.15439,
    "h": 319.4
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

primary
#6A217B
secondary
#5DAE4A
accent
#E14764
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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