#6C178D#6C178D

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

Color values

HEX#6C178D
RGBrgb(108, 23, 141)
HSLhsl(283, 72%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(23.4%, 83.7%, 0%, 44.7%)
CIE-LABlab(28.71, 53.14, -46.53)
CIE-LCHlch(28.71, 70.63, 318.80°)
OKLaboklab(40.95% 0.1262 -0.1316)
OKLCHoklch(40.95% 0.182 313.8)
XYZxyz(11.2976, 5.7244, 25.7039)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C178D #388D17
analogous
#31178D #6C178D #8D1773
triadic
#6C178D #8D6C17 #178D6C
tetradic
#6C178D #8D3117 #388D17 #17738D
square
#6C178D #8D3117 #388D17 #17738D
split-complementary
#6C178D #738D17 #178D31
monochromatic
#1B0624 #440E58 #6C178D #9420C2 #B33FE0

Accessibility & contrast

On white

9.79
#6C178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C178D
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C178D#FFFFFF#000000##FFFFFF
##6C178D1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#06468B
Tritanopia (blue-blind)
#693554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c178d;
/* rgb */ color: rgb(108, 23, 141);
/* oklch */ color: oklch(40.9% 0.182 313.8);
Tailwind
colors: {
  custom: {
    50: '#9b61af',
    500: '#6c178d',
    950: '#000000',
  },
}
SCSS
$custom: #6c178d;
$custom-light: #9b61af;
$custom-dark: #000000;
JSON
{
  "hex": "#6c178d",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 283.22,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40948,
    "c": 0.18238,
    "h": 313.8
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#6C178D
secondary
#64C040
accent
#EF396C
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C178D

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

Preview Lab → · Contrast checker → · Palette generator →

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