#6C178F#6C178F

#6C178F is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.1% C 0.184 H 313.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#6C178F
RGBrgb(108, 23, 143)
HSLhsl(283, 72%, 33%)
HSVhsv(283, 84%, 56%)
CMYKcmyk(24.5%, 83.9%, 0%, 43.9%)
CIE-LABlab(28.86, 53.55, -47.51)
CIE-LCHlch(28.86, 71.59, 318.42°)
OKLaboklab(41.11% 0.1258 -0.1345)
OKLCHoklch(41.11% 0.184 313.1)
XYZxyz(11.4478, 5.7845, 26.4948)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C178F #3A8F17
analogous
#30178F #6C178F #8F1776
triadic
#6C178F #8F6C17 #178F6C
tetradic
#6C178F #8F3017 #3A8F17 #17768F
square
#6C178F #8F3017 #3A8F17 #17768F
split-complementary
#6C178F #768F17 #178F30
monochromatic
#1C0626 #440F5A #6C178F #941FC4 #B240E0

Accessibility & contrast

On white

9.74
#6C178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6C178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C178F
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C178F#FFFFFF#000000##FFFFFF
##6C178F1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#683655
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6c178f;
/* rgb */ color: rgb(108, 23, 143);
/* oklch */ color: oklch(41.1% 0.184 313.1);
Tailwind
colors: {
  custom: {
    50: '#9b61b1',
    500: '#6c178f',
    950: '#000000',
  },
}
SCSS
$custom: #6c178f;
$custom-light: #9b61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c178f",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 282.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41106,
    "c": 0.18417,
    "h": 313.1
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#6C178F
secondary
#66C141
accent
#EF396E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6C178F

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

Preview Lab → · Contrast checker → · Palette generator →

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