#6B218C#6B218C

#6B218C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.171 H 312.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#6B218C
RGBrgb(107, 33, 140)
HSLhsl(281, 62%, 34%)
HSVhsv(281, 76%, 55%)
CMYKcmyk(23.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(29.68, 49.24, -44.34)
CIE-LCHlch(29.68, 66.26, 318.00°)
OKLaboklab(41.58% 0.1165 -0.1253)
OKLCHoklch(41.58% 0.171 312.9)
XYZxyz(11.3400, 6.1073, 25.3873)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B218C #428C21
analogous
#35218C #6B218C #8C2178
triadic
#6B218C #8C6B21 #218C6B
tetradic
#6B218C #8C3521 #428C21 #21788C
square
#6B218C #8C3521 #428C21 #21788C
split-complementary
#6B218C #788C21 #218C35
monochromatic
#1F0A29 #45155A #6B218C #912DBE #AD51D6

Accessibility & contrast

On white

9.45
#6B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6B218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B218C
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B218C#FFFFFF#000000##FFFFFF
##6B218C1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#15478A
Tritanopia (blue-blind)
#673955
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b218c;
/* rgb */ color: rgb(107, 33, 140);
/* oklch */ color: oklch(41.6% 0.171 312.9);
Tailwind
colors: {
  custom: {
    50: '#9965ae',
    500: '#6b218c',
    950: '#000000',
  },
}
SCSS
$custom: #6b218c;
$custom-light: #9965ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b218c",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 281.495,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.17109,
    "h": 312.9
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#6B218C
secondary
#70B94F
accent
#E54375
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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