#6C179E#6C179E

#6C179E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.198 H 308.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#6C179E
RGBrgb(108, 23, 158)
HSLhsl(278, 75%, 35%)
HSVhsv(278, 85%, 62%)
CMYKcmyk(31.6%, 85.4%, 0%, 38%)
CIE-LABlab(30.08, 56.72, -54.73)
CIE-LCHlch(30.08, 78.82, 316.02°)
OKLaboklab(42.34% 0.1217 -0.1558)
OKLCHoklch(42.34% 0.198 308)
XYZxyz(12.6610, 6.2698, 32.8843)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C179E #499E17
analogous
#29179E #6C179E #9E178C
triadic
#6C179E #9E6C17 #179E6C
tetradic
#6C179E #9E2917 #499E17 #178C9E
square
#6C179E #9E2917 #499E17 #178C9E
split-complementary
#6C179E #8C9E17 #179E29
monochromatic
#230733 #470F69 #6C179E #911FD3 #AC4BE5

Accessibility & contrast

On white

9.32
#6C179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C179E
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C179E#FFFFFF#000000##FFFFFF
##6C179E1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#643D5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c179e;
/* rgb */ color: rgb(108, 23, 158);
/* oklch */ color: oklch(42.3% 0.198 308.0);
Tailwind
colors: {
  custom: {
    50: '#9c62bc',
    500: '#6c179e',
    950: '#000000',
  },
}
SCSS
$custom: #6c179e;
$custom-light: #9c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c179e",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 277.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42335,
    "c": 0.19764,
    "h": 308
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#6C179E
secondary
#78C64A
accent
#F1377C
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C179E

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

Preview Lab → · Contrast checker → · Palette generator →

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