#6B217E#6B217E

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

Color values

HEX#6B217E
RGBrgb(107, 33, 126)
HSLhsl(288, 58%, 31%)
HSVhsv(288, 74%, 49%)
CMYKcmyk(15.1%, 73.8%, 0%, 50.6%)
CIE-LABlab(28.70, 46.29, -37.18)
CIE-LCHlch(28.70, 59.37, 321.23°)
OKLaboklab(40.56% 0.1182 -0.1043)
OKLCHoklch(40.56% 0.158 318.6)
XYZxyz(10.3726, 5.7203, 20.2924)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B217E #347E21
analogous
#3C217E #6B217E #7E2162
triadic
#6B217E #7E6B21 #217E6B
tetradic
#6B217E #7E3C21 #347E21 #21627E
square
#6B217E #7E3C21 #347E21 #21627E
split-complementary
#6B217E #627E21 #217E3C
monochromatic
#19081D #42144E #6B217E #942EAE #B44AD0

Accessibility & contrast

On white

9.79
#6B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B217E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B217E#FFFFFF#000000##FFFFFF
##6B217E1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#26467C
Tritanopia (blue-blind)
#6B334D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b217e;
/* rgb */ color: rgb(107, 33, 126);
/* oklch */ color: oklch(40.6% 0.158 318.6);
Tailwind
colors: {
  custom: {
    50: '#9964a4',
    500: '#6b217e',
    950: '#000000',
  },
}
SCSS
$custom: #6b217e;
$custom-light: #9964a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b217e",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 287.742,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40564,
    "c": 0.15767,
    "h": 318.6
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#6B217E
secondary
#5FB14A
accent
#E24666
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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