#6C1787#6C1787

#6C1787 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.5% C 0.177 H 316.1°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#6C1787
RGBrgb(108, 23, 135)
HSLhsl(286, 71%, 31%)
HSVhsv(286, 83%, 53%)
CMYKcmyk(20%, 83%, 0%, 47.1%)
CIE-LABlab(28.25, 51.92, -43.53)
CIE-LCHlch(28.25, 67.75, 320.02°)
OKLaboklab(40.48% 0.1275 -0.1229)
OKLCHoklch(40.48% 0.177 316.1)
XYZxyz(10.8632, 5.5507, 23.4161)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1787 #328717
analogous
#341787 #6C1787 #87176A
triadic
#6C1787 #876C17 #17876C
tetradic
#6C1787 #873417 #328717 #176A87
square
#6C1787 #873417 #328717 #176A87
split-complementary
#6C1787 #6A8717 #178734
monochromatic
#18051E #420E53 #6C1787 #9620BB #B63BDE

Accessibility & contrast

On white

9.95
#6C1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6C1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1787
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1787#FFFFFF#000000##FFFFFF
##6C17871.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#144585
Tritanopia (blue-blind)
#6A3250
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c1787;
/* rgb */ color: rgb(108, 23, 135);
/* oklch */ color: oklch(40.5% 0.177 316.1);
Tailwind
colors: {
  custom: {
    50: '#9a60ab',
    500: '#6c1787',
    950: '#000000',
  },
}
SCSS
$custom: #6c1787;
$custom-light: #9a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1787",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 285.536,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40484,
    "c": 0.17706,
    "h": 316.1
  },
  "luminance": 0.0555
}

Semantic roles & 50–950 ramp

primary
#6C1787
secondary
#5DBB3F
accent
#EE3A65
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1787

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

Preview Lab → · Contrast checker → · Palette generator →

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