#6C218B#6C218B

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

Color values

HEX#6C218B
RGBrgb(108, 33, 139)
HSLhsl(282, 62%, 34%)
HSVhsv(282, 76%, 55%)
CMYKcmyk(22.3%, 76.3%, 0%, 45.5%)
CIE-LABlab(29.76, 49.23, -43.58)
CIE-LCHlch(29.76, 65.75, 318.49°)
OKLaboklab(41.65% 0.118 -0.123)
OKLCHoklch(41.65% 0.17 313.8)
XYZxyz(11.3876, 6.1403, 25.0064)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C218B #408B21
analogous
#37218B #6C218B #8B2175
triadic
#6C218B #8B6C21 #218B6C
tetradic
#6C218B #8B3721 #408B21 #21758B
square
#6C218B #8B3721 #408B21 #21758B
split-complementary
#6C218B #758B21 #218B37
monochromatic
#1F0A28 #46155A #6C218B #922DBC #AF51D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C218B#FFFFFF#000000##FFFFFF
##6C218B1.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)
#00428E
Deuteranopia (green-blind)
#184889
Tritanopia (blue-blind)
#693954
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c218b;
/* rgb */ color: rgb(108, 33, 139);
/* oklch */ color: oklch(41.6% 0.170 313.8);
Tailwind
colors: {
  custom: {
    50: '#9a65ad',
    500: '#6c218b',
    950: '#000000',
  },
}
SCSS
$custom: #6c218b;
$custom-light: #9a65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6c218b",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 282.453,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41645,
    "c": 0.17048,
    "h": 313.8
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#6C218B
secondary
#6EB94F
accent
#E54372
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C218B

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

Preview Lab → · Contrast checker → · Palette generator →

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