#6C179F#6C179F

#6C179F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.4% C 0.199 H 307.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#6C179F
RGBrgb(108, 23, 159)
HSLhsl(278, 75%, 36%)
HSVhsv(278, 86%, 62%)
CMYKcmyk(32.1%, 85.5%, 0%, 37.6%)
CIE-LABlab(30.17, 56.94, -55.20)
CIE-LCHlch(30.17, 79.30, 315.89°)
OKLaboklab(42.42% 0.1214 -0.1571)
OKLCHoklch(42.42% 0.199 307.7)
XYZxyz(12.7474, 6.3043, 33.3395)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C179F #4A9F17
analogous
#28179F #6C179F #9F178E
triadic
#6C179F #9F6C17 #179F6C
tetradic
#6C179F #9F2817 #4A9F17 #178E9F
square
#6C179F #9F2817 #4A9F17 #178E9F
split-complementary
#6C179F #8E9F17 #179F28
monochromatic
#230834 #480F6A #6C179F #901FD4 #AB4BE5

Accessibility & contrast

On white

9.29
#6C179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6C179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C179F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C179F#FFFFFF#000000##FFFFFF
##6C179F1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#633D5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c179f;
/* rgb */ color: rgb(108, 23, 159);
/* oklch */ color: oklch(42.4% 0.199 307.7);
Tailwind
colors: {
  custom: {
    50: '#9c62bc',
    500: '#6c179f',
    950: '#000000',
  },
}
SCSS
$custom: #6c179f;
$custom-light: #9c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c179f",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 277.5,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4242,
    "c": 0.19854,
    "h": 307.7
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#6C179F
secondary
#79C74B
accent
#F1367D
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C179F

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

Preview Lab → · Contrast checker → · Palette generator →

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