#6A217F#6A217F

#6A217F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.5% C 0.158 H 317.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#6A217F
RGBrgb(106, 33, 127)
HSLhsl(287, 59%, 31%)
HSVhsv(287, 74%, 50%)
CMYKcmyk(16.5%, 74%, 0%, 50.2%)
CIE-LABlab(28.60, 46.27, -37.97)
CIE-LCHlch(28.60, 59.85, 320.63°)
OKLaboklab(40.49% 0.1168 -0.1067)
OKLCHoklch(40.49% 0.158 317.6)
XYZxyz(10.3179, 5.6846, 20.6283)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A217F #367F21
analogous
#3B217F #6A217F #7F2165
triadic
#6A217F #7F6A21 #217F6A
tetradic
#6A217F #7F3B21 #367F21 #21657F
square
#6A217F #7F3B21 #367F21 #21657F
split-complementary
#6A217F #657F21 #217F3B
monochromatic
#19081E #41144E #6A217F #932EB0 #B24AD0

Accessibility & contrast

On white

9.83
#6A217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6A217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A217F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A217F#FFFFFF#000000##FFFFFF
##6A217F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#24467D
Tritanopia (blue-blind)
#69344E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a217f;
/* rgb */ color: rgb(106, 33, 127);
/* oklch */ color: oklch(40.5% 0.158 317.6);
Tailwind
colors: {
  custom: {
    50: '#9864a5',
    500: '#6a217f',
    950: '#000000',
  },
}
SCSS
$custom: #6a217f;
$custom-light: #9864a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a217f",
  "rgb": {
    "r": 106,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 286.596,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40487,
    "c": 0.15819,
    "h": 317.6
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#6A217F
secondary
#61B24A
accent
#E24669
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A217F

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

Preview Lab → · Contrast checker → · Palette generator →

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