#6D179F#6D179F

#6D179F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.6% C 0.199 H 308.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#6D179F
RGBrgb(109, 23, 159)
HSLhsl(278, 75%, 36%)
HSVhsv(278, 86%, 62%)
CMYKcmyk(31.4%, 85.5%, 0%, 37.6%)
CIE-LABlab(30.32, 57.09, -54.95)
CIE-LCHlch(30.32, 79.24, 316.10°)
OKLaboklab(42.56% 0.1228 -0.1563)
OKLCHoklch(42.56% 0.199 308.1)
XYZxyz(12.8698, 6.3674, 33.3452)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D179F #499F17
analogous
#29179F #6D179F #9F178D
triadic
#6D179F #9F6D17 #179F6D
tetradic
#6D179F #9F2917 #499F17 #178D9F
square
#6D179F #9F2917 #499F17 #178D9F
split-complementary
#6D179F #8D9F17 #179F29
monochromatic
#240834 #480F6A #6D179F #921FD4 #AD4BE5

Accessibility & contrast

On white

9.24
#6D179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D179F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D179F#FFFFFF#000000##FFFFFF
##6D179F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d179f;
/* rgb */ color: rgb(109, 23, 159);
/* oklch */ color: oklch(42.6% 0.199 308.1);
Tailwind
colors: {
  custom: {
    50: '#9c62bc',
    500: '#6d179f',
    950: '#000000',
  },
}
SCSS
$custom: #6d179f;
$custom-light: #9c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6d179f",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 277.941,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42558,
    "c": 0.19879,
    "h": 308.1
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#6D179F
secondary
#79C74B
accent
#F1367B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6D179F

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

Preview Lab → · Contrast checker → · Palette generator →

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