#6C218E#6C218E

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

Color values

HEX#6C218E
RGBrgb(108, 33, 142)
HSLhsl(281, 62%, 34%)
HSVhsv(281, 77%, 56%)
CMYKcmyk(23.9%, 76.8%, 0%, 44.3%)
CIE-LABlab(29.98, 49.88, -45.08)
CIE-LCHlch(29.98, 67.23, 317.89°)
OKLaboklab(41.87% 0.1175 -0.1275)
OKLCHoklch(41.87% 0.173 312.7)
XYZxyz(11.6098, 6.2292, 26.1767)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C218E #438E21
analogous
#35218E #6C218E #8E217A
triadic
#6C218E #8E6C21 #218E6C
tetradic
#6C218E #8E3521 #438E21 #217A8E
square
#6C218E #8E3521 #438E21 #217A8E
split-complementary
#6C218E #7A8E21 #218E35
monochromatic
#200A2B #46155C #6C218E #922DC0 #AE52D7

Accessibility & contrast

On white

9.35
#6C218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6C218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C218E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C218E#FFFFFF#000000##FFFFFF
##6C218E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#13488C
Tritanopia (blue-blind)
#683A56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c218e;
/* rgb */ color: rgb(108, 33, 142);
/* oklch */ color: oklch(41.9% 0.173 312.7);
Tailwind
colors: {
  custom: {
    50: '#9a65b0',
    500: '#6c218e',
    950: '#000000',
  },
}
SCSS
$custom: #6c218e;
$custom-light: #9a65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c218e",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 281.284,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4187,
    "c": 0.17336,
    "h": 312.7
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C218E

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

Preview Lab → · Contrast checker → · Palette generator →

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