#6B217D#6B217D

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

Color values

HEX#6B217D
RGBrgb(107, 33, 125)
HSLhsl(288, 58%, 31%)
HSVhsv(288, 74%, 49%)
CMYKcmyk(14.4%, 73.6%, 0%, 51%)
CIE-LABlab(28.63, 46.08, -36.66)
CIE-LCHlch(28.63, 58.88, 321.50°)
OKLaboklab(40.49% 0.1183 -0.1028)
OKLCHoklch(40.49% 0.157 319)
XYZxyz(10.3084, 5.6947, 19.9543)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B217D #337D21
analogous
#3D217D #6B217D #7D2161
triadic
#6B217D #7D6B21 #217D6B
tetradic
#6B217D #7D3D21 #337D21 #21617D
square
#6B217D #7D3D21 #337D21 #21617D
split-complementary
#6B217D #617D21 #217D3D
monochromatic
#18071C #42144D #6B217D #942EAD #B549CF

Accessibility & contrast

On white

9.82
#6B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B217D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B217D#FFFFFF#000000##FFFFFF
##6B217D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#27467B
Tritanopia (blue-blind)
#6B334D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b217d;
/* rgb */ color: rgb(107, 33, 125);
/* oklch */ color: oklch(40.5% 0.157 319.0);
Tailwind
colors: {
  custom: {
    50: '#9964a3',
    500: '#6b217d',
    950: '#000000',
  },
}
SCSS
$custom: #6b217d;
$custom-light: #9964a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b217d",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 288.261,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.15672,
    "h": 319
  },
  "luminance": 0.05694
}

Semantic roles & 50–950 ramp

primary
#6B217D
secondary
#5EB04A
accent
#E14665
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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