#6B218E#6B218E

#6B218E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.173 H 312.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#6B218E
RGBrgb(107, 33, 142)
HSLhsl(281, 62%, 34%)
HSVhsv(281, 77%, 56%)
CMYKcmyk(24.6%, 76.8%, 0%, 44.3%)
CIE-LABlab(29.83, 49.68, -45.34)
CIE-LCHlch(29.83, 67.25, 317.62°)
OKLaboklab(41.73% 0.1161 -0.1282)
OKLCHoklch(41.73% 0.173 312.2)
XYZxyz(11.4888, 6.1668, 26.1711)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B218E #448E21
analogous
#35218E #6B218E #8E217B
triadic
#6B218E #8E6B21 #218E6B
tetradic
#6B218E #8E3521 #448E21 #217B8E
square
#6B218E #8E3521 #448E21 #217B8E
split-complementary
#6B218E #7B8E21 #218E35
monochromatic
#200A2B #46155C #6B218E #902DC0 #AC52D7

Accessibility & contrast

On white

9.40
#6B218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B218E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B218E#FFFFFF#000000##FFFFFF
##6B218E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#11488C
Tritanopia (blue-blind)
#673A56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b218e;
/* rgb */ color: rgb(107, 33, 142);
/* oklch */ color: oklch(41.7% 0.173 312.2);
Tailwind
colors: {
  custom: {
    50: '#9965b0',
    500: '#6b218e',
    950: '#000000',
  },
}
SCSS
$custom: #6b218e;
$custom-light: #9965b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b218e",
  "rgb": {
    "r": 107,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 280.734,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41729,
    "c": 0.17302,
    "h": 312.2
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#6B218E
secondary
#72BA50
accent
#E54277
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B218E

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

Preview Lab → · Contrast checker → · Palette generator →

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