#6D1786#6D1786

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

Color values

HEX#6D1786
RGBrgb(109, 23, 134)
HSLhsl(286, 71%, 31%)
HSVhsv(286, 83%, 53%)
CMYKcmyk(18.7%, 82.8%, 0%, 47.5%)
CIE-LABlab(28.34, 51.91, -42.75)
CIE-LCHlch(28.34, 67.24, 320.53°)
OKLaboklab(40.56% 0.129 -0.1205)
OKLCHoklch(40.56% 0.177 316.9)
XYZxyz(10.9155, 5.5857, 23.0528)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1786 #308617
analogous
#351786 #6D1786 #861767
triadic
#6D1786 #866D17 #17866D
tetradic
#6D1786 #863517 #308617 #176786
square
#6D1786 #863517 #308617 #176786
split-complementary
#6D1786 #678617 #178635
monochromatic
#18051E #430E52 #6D1786 #9720BA #B83ADD

Accessibility & contrast

On white

9.92
#6D1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D1786
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1786#FFFFFF#000000##FFFFFF
##6D17861.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#184584
Tritanopia (blue-blind)
#6C314F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6d1786;
/* rgb */ color: rgb(109, 23, 134);
/* oklch */ color: oklch(40.6% 0.177 316.9);
Tailwind
colors: {
  custom: {
    50: '#9b60aa',
    500: '#6d1786',
    950: '#000000',
  },
}
SCSS
$custom: #6d1786;
$custom-light: #9b60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1786",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 286.486,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.17654,
    "h": 316.9
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#6D1786
secondary
#5BBA3F
accent
#ED3A63
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6D1786

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

Preview Lab → · Contrast checker → · Palette generator →

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