#6B218D#6B218D

#6B218D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.172 H 312.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#6B218D
RGBrgb(107, 33, 141)
HSLhsl(281, 62%, 34%)
HSVhsv(281, 77%, 55%)
CMYKcmyk(24.1%, 76.6%, 0%, 44.7%)
CIE-LABlab(29.76, 49.46, -44.84)
CIE-LCHlch(29.76, 66.76, 317.81°)
OKLaboklab(41.65% 0.1163 -0.1268)
OKLCHoklch(41.65% 0.172 312.5)
XYZxyz(11.4141, 6.1369, 25.7774)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B218D #438D21
analogous
#35218D #6B218D #8D2179
triadic
#6B218D #8D6B21 #218D6B
tetradic
#6B218D #8D3521 #438D21 #21798D
square
#6B218D #8D3521 #438D21 #21798D
split-complementary
#6B218D #798D21 #218D35
monochromatic
#200A2A #45155B #6B218D #912DBF #AD52D6

Accessibility & contrast

On white

9.43
#6B218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6B218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B218D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B218D#FFFFFF#000000##FFFFFF
##6B218D1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#13488B
Tritanopia (blue-blind)
#673A56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b218d;
/* rgb */ color: rgb(107, 33, 141);
/* oklch */ color: oklch(41.7% 0.172 312.5);
Tailwind
colors: {
  custom: {
    50: '#9965af',
    500: '#6b218d',
    950: '#000000',
  },
}
SCSS
$custom: #6b218d;
$custom-light: #9965af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b218d",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 281.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41653,
    "c": 0.17206,
    "h": 312.5
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#6B218D
secondary
#71BA50
accent
#E54376
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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