#6C178E#6C178E

#6C178E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.183 H 313.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#6C178E
RGBrgb(108, 23, 142)
HSLhsl(283, 72%, 32%)
HSVhsv(283, 84%, 56%)
CMYKcmyk(23.9%, 83.8%, 0%, 44.3%)
CIE-LABlab(28.78, 53.35, -47.02)
CIE-LCHlch(28.78, 71.11, 318.61°)
OKLaboklab(41.03% 0.126 -0.1331)
OKLCHoklch(41.03% 0.183 313.4)
XYZxyz(11.3724, 5.7543, 26.0976)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C178E #398E17
analogous
#30178E #6C178E #8E1775
triadic
#6C178E #8E6C17 #178E6C
tetradic
#6C178E #8E3017 #398E17 #17758E
square
#6C178E #8E3017 #398E17 #17758E
split-complementary
#6C178E #758E17 #178E30
monochromatic
#1C0625 #440E59 #6C178E #9420C3 #B23FE0

Accessibility & contrast

On white

9.76
#6C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6C178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C178E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C178E#FFFFFF#000000##FFFFFF
##6C178E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#03468C
Tritanopia (blue-blind)
#683554
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c178e;
/* rgb */ color: rgb(108, 23, 142);
/* oklch */ color: oklch(41.0% 0.183 313.4);
Tailwind
colors: {
  custom: {
    50: '#9b61b0',
    500: '#6c178e',
    950: '#000000',
  },
}
SCSS
$custom: #6c178e;
$custom-light: #9b61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c178e",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 282.857,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41027,
    "c": 0.18327,
    "h": 313.4
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#6C178E
secondary
#65C040
accent
#EF396D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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