#6B1788#6B1788

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

Color values

HEX#6B1788
RGBrgb(107, 23, 136)
HSLhsl(285, 71%, 31%)
HSVhsv(285, 83%, 53%)
CMYKcmyk(21.3%, 83.1%, 0%, 46.7%)
CIE-LABlab(28.16, 51.93, -44.31)
CIE-LCHlch(28.16, 68.27, 319.53°)
OKLaboklab(40.41% 0.126 -0.1252)
OKLCHoklch(40.41% 0.178 315.2)
XYZxyz(10.8130, 5.5166, 23.7830)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1788 #348817
analogous
#321788 #6B1788 #88176C
triadic
#6B1788 #886B17 #17886B
tetradic
#6B1788 #883217 #348817 #176C88
square
#6B1788 #883217 #348817 #176C88
split-complementary
#6B1788 #6C8817 #178832
monochromatic
#19051F #420E54 #6B1788 #9420BC #B43BDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B1788#FFFFFF#000000##FFFFFF
##6B17881.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)
#003E8B
Deuteranopia (green-blind)
#104486
Tritanopia (blue-blind)
#693351
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b1788;
/* rgb */ color: rgb(107, 23, 136);
/* oklch */ color: oklch(40.4% 0.178 315.2);
Tailwind
colors: {
  custom: {
    50: '#9a60ab',
    500: '#6b1788',
    950: '#000000',
  },
}
SCSS
$custom: #6b1788;
$custom-light: #9a60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1788",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 284.602,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40411,
    "c": 0.1776,
    "h": 315.2
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#6B1788
secondary
#5FBC3F
accent
#EE3A68
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B1788

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

Preview Lab → · Contrast checker → · Palette generator →

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