#6B217C#6B217C

#6B217C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.4% C 0.156 H 319.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#6B217C
RGBrgb(107, 33, 124)
HSLhsl(289, 58%, 31%)
HSVhsv(289, 73%, 49%)
CMYKcmyk(13.7%, 73.4%, 0%, 51.4%)
CIE-LABlab(28.56, 45.88, -36.13)
CIE-LCHlch(28.56, 58.40, 321.78°)
OKLaboklab(40.43% 0.1184 -0.1013)
OKLCHoklch(40.43% 0.156 319.5)
XYZxyz(10.2449, 5.6692, 19.6195)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B217C #327C21
analogous
#3D217C #6B217C #7C215F
triadic
#6B217C #7C6B21 #217C6B
tetradic
#6B217C #7C3D21 #327C21 #215F7C
square
#6B217C #7C3D21 #327C21 #215F7C
split-complementary
#6B217C #5F7C21 #217C3D
monochromatic
#18071B #41144C #6B217C #952EAC #B649CF

Accessibility & contrast

On white

9.84
#6B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B217C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B217C#FFFFFF#000000##FFFFFF
##6B217C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#28467A
Tritanopia (blue-blind)
#6B324C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b217c;
/* rgb */ color: rgb(107, 33, 124);
/* oklch */ color: oklch(40.4% 0.156 319.5);
Tailwind
colors: {
  custom: {
    50: '#9864a2',
    500: '#6b217c',
    950: '#000000',
  },
}
SCSS
$custom: #6b217c;
$custom-light: #9864a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b217c",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 288.791,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40426,
    "c": 0.15578,
    "h": 319.5
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

primary
#6B217C
secondary
#5DAF4A
accent
#E14763
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B217C

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

Preview Lab → · Contrast checker → · Palette generator →

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