#6B217B#6B217B

#6B217B is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.4% C 0.155 H 319.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#6B217B
RGBrgb(107, 33, 123)
HSLhsl(289, 58%, 31%)
HSVhsv(289, 73%, 48%)
CMYKcmyk(13%, 73.2%, 0%, 51.8%)
CIE-LABlab(28.50, 45.67, -35.61)
CIE-LCHlch(28.50, 57.91, 322.06°)
OKLaboklab(40.36% 0.1184 -0.0997)
OKLCHoklch(40.36% 0.155 319.9)
XYZxyz(10.1820, 5.6441, 19.2881)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B217B #317B21
analogous
#3E217B #6B217B #7B215E
triadic
#6B217B #7B6B21 #217B6B
tetradic
#6B217B #7B3E21 #317B21 #215E7B
square
#6B217B #7B3E21 #317B21 #215E7B
split-complementary
#6B217B #5E7B21 #217B3E
monochromatic
#17071A #41144B #6B217B #952EAB #B648CE

Accessibility & contrast

On white

9.86
#6B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B217B
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B217B#FFFFFF#000000##FFFFFF
##6B217B1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b217b;
/* rgb */ color: rgb(107, 33, 123);
/* oklch */ color: oklch(40.4% 0.155 319.9);
Tailwind
colors: {
  custom: {
    50: '#9864a2',
    500: '#6b217b',
    950: '#000000',
  },
}
SCSS
$custom: #6b217b;
$custom-light: #9864a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b217b",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 289.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.15483,
    "h": 319.9
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#6B217B
secondary
#5CAE4A
accent
#E14762
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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