#6A217D#6A217D

#6A217D is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.3% C 0.156 H 318.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#6A217D
RGBrgb(106, 33, 125)
HSLhsl(288, 58%, 31%)
HSVhsv(288, 74%, 49%)
CMYKcmyk(15.2%, 73.6%, 0%, 51%)
CIE-LABlab(28.47, 45.85, -36.92)
CIE-LCHlch(28.47, 58.87, 321.16°)
OKLaboklab(40.35% 0.117 -0.1036)
OKLCHoklch(40.35% 0.156 318.5)
XYZxyz(10.1889, 5.6330, 19.9486)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A217D #347D21
analogous
#3C217D #6A217D #7D2162
triadic
#6A217D #7D6A21 #217D6A
tetradic
#6A217D #7D3C21 #347D21 #21627D
square
#6A217D #7D3C21 #347D21 #21627D
split-complementary
#6A217D #627D21 #217D3C
monochromatic
#18071C #41144D #6A217D #932EAD #B349CF

Accessibility & contrast

On white

9.87
#6A217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A217D
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A217D#FFFFFF#000000##FFFFFF
##6A217D1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#26457B
Tritanopia (blue-blind)
#6A334D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a217d;
/* rgb */ color: rgb(106, 33, 125);
/* oklch */ color: oklch(40.3% 0.156 318.5);
Tailwind
colors: {
  custom: {
    50: '#9864a3',
    500: '#6a217d',
    950: '#000000',
  },
}
SCSS
$custom: #6a217d;
$custom-light: #9864a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a217d",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 287.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40347,
    "c": 0.15629,
    "h": 318.5
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#6A217D
secondary
#5FB04A
accent
#E14666
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A217D

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

Preview Lab → · Contrast checker → · Palette generator →

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