#6C177E#6C177E

#6C177E is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.8% C 0.169 H 319.7°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#6C177E
RGBrgb(108, 23, 126)
HSLhsl(290, 69%, 29%)
HSVhsv(290, 82%, 49%)
CMYKcmyk(14.3%, 81.7%, 0%, 50.6%)
CIE-LABlab(27.59, 50.14, -38.94)
CIE-LCHlch(27.59, 63.48, 322.16°)
OKLaboklab(39.82% 0.129 -0.1094)
OKLCHoklch(39.82% 0.169 319.7)
XYZxyz(10.2562, 5.3078, 20.2189)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C177E #297E17
analogous
#39177E #6C177E #7E175D
triadic
#6C177E #7E6C17 #177E6C
tetradic
#6C177E #7E3917 #297E17 #175D7E
square
#6C177E #7E3917 #297E17 #175D7E
split-complementary
#6C177E #5D7E17 #177E39
monochromatic
#16051A #400E4A #6C177E #9820B2 #BD35DA

Accessibility & contrast

On white

10.19
#6C177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#6C177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C177E
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C177E#FFFFFF#000000##FFFFFF
##6C177E1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#21447C
Tritanopia (blue-blind)
#6C2E4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c177e;
/* rgb */ color: rgb(108, 23, 126);
/* oklch */ color: oklch(39.8% 0.169 319.7);
Tailwind
colors: {
  custom: {
    50: '#9a60a4',
    500: '#6c177e',
    950: '#000000',
  },
}
SCSS
$custom: #6c177e;
$custom-light: #9a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6c177e",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 289.515,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39816,
    "c": 0.16916,
    "h": 319.7
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#6C177E
secondary
#53B33E
accent
#EC3C5B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6C177E

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

Preview Lab → · Contrast checker → · Palette generator →

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