#6B217F#6B217F

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

Color values

HEX#6B217F
RGBrgb(107, 33, 127)
HSLhsl(287, 59%, 31%)
HSVhsv(287, 74%, 50%)
CMYKcmyk(15.7%, 74%, 0%, 50.2%)
CIE-LABlab(28.76, 46.49, -37.70)
CIE-LCHlch(28.76, 59.86, 320.96°)
OKLaboklab(40.63% 0.1181 -0.1058)
OKLCHoklch(40.63% 0.159 318.1)
XYZxyz(10.4375, 5.7463, 20.6339)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B217F #357F21
analogous
#3C217F #6B217F #7F2164
triadic
#6B217F #7F6B21 #217F6B
tetradic
#6B217F #7F3C21 #357F21 #21647F
square
#6B217F #7F3C21 #357F21 #21647F
split-complementary
#6B217F #647F21 #217F3C
monochromatic
#19081E #42144E #6B217F #942EB0 #B44AD0

Accessibility & contrast

On white

9.77
#6B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6B217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B217F
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B217F#FFFFFF#000000##FFFFFF
##6B217F1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#25467D
Tritanopia (blue-blind)
#6A344E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b217f;
/* rgb */ color: rgb(107, 33, 127);
/* oklch */ color: oklch(40.6% 0.159 318.1);
Tailwind
colors: {
  custom: {
    50: '#9964a5',
    500: '#6b217f',
    950: '#000000',
  },
}
SCSS
$custom: #6b217f;
$custom-light: #9964a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b217f",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 287.234,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.15862,
    "h": 318.1
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#6B217F
secondary
#60B24A
accent
#E24667
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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