#6D179E#6D179E

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

Color values

HEX#6D179E
RGBrgb(109, 23, 158)
HSLhsl(278, 75%, 35%)
HSVhsv(278, 85%, 62%)
CMYKcmyk(31%, 85.4%, 0%, 38%)
CIE-LABlab(30.24, 56.88, -54.47)
CIE-LCHlch(30.24, 78.76, 316.24°)
OKLaboklab(42.47% 0.1231 -0.155)
OKLCHoklch(42.47% 0.198 308.5)
XYZxyz(12.7833, 6.3328, 32.8901)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D179E #489E17
analogous
#29179E #6D179E #9E178B
triadic
#6D179E #9E6D17 #179E6D
tetradic
#6D179E #9E2917 #489E17 #178B9E
square
#6D179E #9E2917 #489E17 #178B9E
split-complementary
#6D179E #8B9E17 #179E29
monochromatic
#230733 #480F69 #6D179E #921FD3 #AD4BE5

Accessibility & contrast

On white

9.26
#6D179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6D179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D179E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D179E#FFFFFF#000000##FFFFFF
##6D179E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d179e;
/* rgb */ color: rgb(109, 23, 158);
/* oklch */ color: oklch(42.5% 0.198 308.5);
Tailwind
colors: {
  custom: {
    50: '#9c62bc',
    500: '#6d179e',
    950: '#000000',
  },
}
SCSS
$custom: #6d179e;
$custom-light: #9c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6d179e",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 278.222,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.19789,
    "h": 308.5
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D179E

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

Preview Lab → · Contrast checker → · Palette generator →

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