#6D1788#6D1788

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

Color values

HEX#6D1788
RGBrgb(109, 23, 136)
HSLhsl(286, 71%, 31%)
HSVhsv(286, 83%, 53%)
CMYKcmyk(19.9%, 83.1%, 0%, 46.7%)
CIE-LABlab(28.49, 52.31, -43.76)
CIE-LCHlch(28.49, 68.20, 320.08°)
OKLaboklab(40.71% 0.1286 -0.1235)
OKLCHoklch(40.71% 0.178 316.2)
XYZxyz(11.0563, 5.6420, 23.7944)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1788 #328817
analogous
#341788 #6D1788 #88176A
triadic
#6D1788 #886D17 #17886D
tetradic
#6D1788 #883417 #328817 #176A88
square
#6D1788 #883417 #328817 #176A88
split-complementary
#6D1788 #6A8817 #178834
monochromatic
#19051F #430E54 #6D1788 #9720BC #B73BDE

Accessibility & contrast

On white

9.87
#6D1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6D1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1788
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1788#FFFFFF#000000##FFFFFF
##6D17881.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d1788;
/* rgb */ color: rgb(109, 23, 136);
/* oklch */ color: oklch(40.7% 0.178 316.2);
Tailwind
colors: {
  custom: {
    50: '#9b60ab',
    500: '#6d1788',
    950: '#000000',
  },
}
SCSS
$custom: #6d1788;
$custom-light: #9b60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1788",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 285.664,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4071,
    "c": 0.17829,
    "h": 316.2
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

primary
#6D1788
secondary
#5DBC3F
accent
#EE3A65
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D1788

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

Preview Lab → · Contrast checker → · Palette generator →

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