#6C1887#6C1887

#6C1887 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.176 H 316.0°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#6C1887
RGBrgb(108, 24, 135)
HSLhsl(285, 70%, 31%)
HSVhsv(285, 82%, 53%)
CMYKcmyk(20%, 82.2%, 0%, 47.1%)
CIE-LABlab(28.36, 51.61, -43.36)
CIE-LCHlch(28.36, 67.40, 319.96°)
OKLaboklab(40.56% 0.1267 -0.1223)
OKLCHoklch(40.56% 0.176 316)
XYZxyz(10.8835, 5.5911, 23.4229)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1887 #338718
analogous
#341887 #6C1887 #87186A
triadic
#6C1887 #876C18 #18876C
tetradic
#6C1887 #873418 #338718 #186A87
square
#6C1887 #873418 #338718 #186A87
split-complementary
#6C1887 #6A8718 #188734
monochromatic
#19061F #420F53 #6C1887 #9621BB #B63DDC

Accessibility & contrast

On white

9.91
#6C1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6C1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1887
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1887#FFFFFF#000000##FFFFFF
##6C18871.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c1887;
/* rgb */ color: rgb(108, 24, 135);
/* oklch */ color: oklch(40.6% 0.176 316.0);
Tailwind
colors: {
  custom: {
    50: '#9a61ab',
    500: '#6c1887',
    950: '#000000',
  },
}
SCSS
$custom: #6c1887;
$custom-light: #9a61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1887",
  "rgb": {
    "r": 108,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 285.405,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.17614,
    "h": 316
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#6C1887
secondary
#5EBB40
accent
#ED3B66
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1887

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

Preview Lab → · Contrast checker → · Palette generator →

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