#6C218C#6C218C

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

Color values

HEX#6C218C
RGBrgb(108, 33, 140)
HSLhsl(282, 62%, 34%)
HSVhsv(282, 76%, 55%)
CMYKcmyk(22.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(29.84, 49.45, -44.08)
CIE-LCHlch(29.84, 66.24, 318.29°)
OKLaboklab(41.72% 0.1178 -0.1245)
OKLCHoklch(41.72% 0.171 313.4)
XYZxyz(11.4610, 6.1697, 25.3930)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C218C #418C21
analogous
#37218C #6C218C #8C2177
triadic
#6C218C #8C6C21 #218C6C
tetradic
#6C218C #8C3721 #418C21 #21778C
square
#6C218C #8C3721 #418C21 #21778C
split-complementary
#6C218C #778C21 #218C37
monochromatic
#200A29 #46155A #6C218C #922DBE #AE51D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C218C#FFFFFF#000000##FFFFFF
##6C218C1.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)
#00428F
Deuteranopia (green-blind)
#17488A
Tritanopia (blue-blind)
#693955
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c218c;
/* rgb */ color: rgb(108, 33, 140);
/* oklch */ color: oklch(41.7% 0.171 313.4);
Tailwind
colors: {
  custom: {
    50: '#9a65ae',
    500: '#6c218c',
    950: '#000000',
  },
}
SCSS
$custom: #6c218c;
$custom-light: #9a65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6c218c",
  "rgb": {
    "r": 108,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 282.056,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.41719,
    "c": 0.17144,
    "h": 313.4
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#6C218C
secondary
#6FB94F
accent
#E54373
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C218C

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

Preview Lab → · Contrast checker → · Palette generator →

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