#6D217B#6D217B

#6D217B is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.156 H 321.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6D217B
RGBrgb(109, 33, 123)
HSLhsl(291, 58%, 31%)
HSVhsv(291, 73%, 48%)
CMYKcmyk(11.4%, 73.2%, 0%, 51.8%)
CIE-LABlab(28.82, 46.14, -35.06)
CIE-LCHlch(28.82, 57.95, 322.77°)
OKLaboklab(40.66% 0.121 -0.0981)
OKLCHoklch(40.66% 0.156 321)
XYZxyz(10.4253, 5.7695, 19.2995)
Luminance0.0577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D217B #2F7B21
analogous
#40217B #6D217B #7B215C
triadic
#6D217B #7B6D21 #217B6D
tetradic
#6D217B #7B4021 #2F7B21 #215C7B
square
#6D217B #7B4021 #2F7B21 #215C7B
split-complementary
#6D217B #5C7B21 #217B40
monochromatic
#17071A #42144B #6D217B #982EAB #B948CE

Accessibility & contrast

On white

9.75
#6D217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D217B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D217B#FFFFFF#000000##FFFFFF
##6D217B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#2B4779
Tritanopia (blue-blind)
#6E324C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6d217b;
/* rgb */ color: rgb(109, 33, 123);
/* oklch */ color: oklch(40.7% 0.156 321.0);
Tailwind
colors: {
  custom: {
    50: '#9a64a2',
    500: '#6d217b',
    950: '#000000',
  },
}
SCSS
$custom: #6d217b;
$custom-light: #9a64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d217b",
  "rgb": {
    "r": 109,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 290.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.15574,
    "h": 321
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#6D217B
secondary
#59AE4A
accent
#E1475F
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6D217B

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

Preview Lab → · Contrast checker → · Palette generator →

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