#6C1788#6C1788

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

Color values

HEX#6C1788
RGBrgb(108, 23, 136)
HSLhsl(285, 71%, 31%)
HSVhsv(285, 83%, 53%)
CMYKcmyk(20.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(28.32, 52.12, -44.04)
CIE-LCHlch(28.32, 68.23, 319.81°)
OKLaboklab(40.56% 0.1273 -0.1243)
OKLCHoklch(40.56% 0.178 315.7)
XYZxyz(10.9340, 5.5789, 23.7887)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1788 #338817
analogous
#331788 #6C1788 #88176B
triadic
#6C1788 #886C17 #17886C
tetradic
#6C1788 #883317 #338817 #176B88
square
#6C1788 #883317 #338817 #176B88
split-complementary
#6C1788 #6B8817 #178833
monochromatic
#19051F #420E54 #6C1788 #9620BC #B63BDE

Accessibility & contrast

On white

9.93
#6C1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C1788
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1788#FFFFFF#000000##FFFFFF
##6C17881.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#134586
Tritanopia (blue-blind)
#6A3351
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c1788;
/* rgb */ color: rgb(108, 23, 136);
/* oklch */ color: oklch(40.6% 0.178 315.7);
Tailwind
colors: {
  custom: {
    50: '#9a60ab',
    500: '#6c1788',
    950: '#000000',
  },
}
SCSS
$custom: #6c1788;
$custom-light: #9a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1788",
  "rgb": {
    "r": 108,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 285.133,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4056,
    "c": 0.17794,
    "h": 315.7
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#6C1788
secondary
#5EBC3F
accent
#EE3A67
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1788

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

Preview Lab → · Contrast checker → · Palette generator →

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