#6C1786#6C1786

#6C1786 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.176 H 316.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#6C1786
RGBrgb(108, 23, 134)
HSLhsl(286, 71%, 31%)
HSVhsv(286, 83%, 53%)
CMYKcmyk(19.4%, 82.8%, 0%, 47.5%)
CIE-LABlab(28.17, 51.72, -43.03)
CIE-LCHlch(28.17, 67.28, 320.24°)
OKLaboklab(40.41% 0.1277 -0.1214)
OKLCHoklch(40.41% 0.176 316.5)
XYZxyz(10.7931, 5.5226, 23.0471)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1786 #318617
analogous
#341786 #6C1786 #861768
triadic
#6C1786 #866C17 #17866C
tetradic
#6C1786 #863417 #318617 #176886
square
#6C1786 #863417 #318617 #176886
split-complementary
#6C1786 #688617 #178634
monochromatic
#18051E #420E52 #6C1786 #9620BA #B73ADD

Accessibility & contrast

On white

9.98
#6C1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#6C1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1786
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1786#FFFFFF#000000##FFFFFF
##6C17861.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#164584
Tritanopia (blue-blind)
#6A324F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6c1786;
/* rgb */ color: rgb(108, 23, 134);
/* oklch */ color: oklch(40.4% 0.176 316.5);
Tailwind
colors: {
  custom: {
    50: '#9a60aa',
    500: '#6c1786',
    950: '#000000',
  },
}
SCSS
$custom: #6c1786;
$custom-light: #9a60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1786",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 285.946,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40408,
    "c": 0.17618,
    "h": 316.5
  },
  "luminance": 0.05522
}

Semantic roles & 50–950 ramp

primary
#6C1786
secondary
#5CBA3F
accent
#ED3A64
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1786

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

Preview Lab → · Contrast checker → · Palette generator →

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