#6C178C#6C178C

#6C178C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.181 H 314.2°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#6C178C
RGBrgb(108, 23, 140)
HSLhsl(284, 72%, 32%)
HSVhsv(284, 84%, 55%)
CMYKcmyk(22.9%, 83.6%, 0%, 45.1%)
CIE-LABlab(28.63, 52.93, -46.03)
CIE-LCHlch(28.63, 70.15, 318.99°)
OKLaboklab(40.87% 0.1264 -0.1302)
OKLCHoklch(40.87% 0.181 314.2)
XYZxyz(11.2235, 5.6948, 25.3138)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C178C #378C17
analogous
#32178C #6C178C #8C1772
triadic
#6C178C #8C6C17 #178C6C
tetradic
#6C178C #8C3217 #378C17 #17728C
square
#6C178C #8C3217 #378C17 #17728C
split-complementary
#6C178C #728C17 #178C32
monochromatic
#1B0623 #430E57 #6C178C #9520C1 #B33EDF

Accessibility & contrast

On white

9.82
#6C178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6C178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C178C
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C178C#FFFFFF#000000##FFFFFF
##6C178C1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#09458A
Tritanopia (blue-blind)
#693453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c178c;
/* rgb */ color: rgb(108, 23, 140);
/* oklch */ color: oklch(40.9% 0.181 314.2);
Tailwind
colors: {
  custom: {
    50: '#9a61ae',
    500: '#6c178c',
    950: '#000000',
  },
}
SCSS
$custom: #6c178c;
$custom-light: #9a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6c178c",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 283.59,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4087,
    "c": 0.18149,
    "h": 314.2
  },
  "luminance": 0.05694
}

Semantic roles & 50–950 ramp

primary
#6C178C
secondary
#62BF3F
accent
#EF396B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C178C

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

Preview Lab → · Contrast checker → · Palette generator →

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