#6C179D#6C179D

#6C179D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.3% C 0.197 H 308.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#6C179D
RGBrgb(108, 23, 157)
HSLhsl(278, 74%, 35%)
HSVhsv(278, 85%, 62%)
CMYKcmyk(31.2%, 85.4%, 0%, 38.4%)
CIE-LABlab(30.00, 56.51, -54.26)
CIE-LCHlch(30.00, 78.34, 316.16°)
OKLaboklab(42.25% 0.122 -0.1544)
OKLCHoklch(42.25% 0.197 308.3)
XYZxyz(12.5753, 6.2355, 32.4329)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C179D #489D17
analogous
#29179D #6C179D #9D178B
triadic
#6C179D #9D6C17 #179D6C
tetradic
#6C179D #9D2917 #489D17 #178B9D
square
#6C179D #9D2917 #489D17 #178B9D
split-complementary
#6C179D #8B9D17 #179D29
monochromatic
#230732 #470F68 #6C179D #911FD2 #AC4AE4

Accessibility & contrast

On white

9.35
#6C179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6C179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C179D
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C179D#FFFFFF#000000##FFFFFF
##6C179D1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#643D5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c179d;
/* rgb */ color: rgb(108, 23, 157);
/* oklch */ color: oklch(42.3% 0.197 308.3);
Tailwind
colors: {
  custom: {
    50: '#9c62bb',
    500: '#6c179d',
    950: '#000000',
  },
}
SCSS
$custom: #6c179d;
$custom-light: #9c62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c179d",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 278.06,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42251,
    "c": 0.19673,
    "h": 308.3
  },
  "luminance": 0.06235
}

Semantic roles & 50–950 ramp

primary
#6C179D
secondary
#77C64A
accent
#F1377B
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C179D

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

Preview Lab → · Contrast checker → · Palette generator →

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