#6B1786#6B1786

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

Color values

HEX#6B1786
RGBrgb(107, 23, 134)
HSLhsl(285, 71%, 31%)
HSVhsv(285, 83%, 53%)
CMYKcmyk(20.1%, 82.8%, 0%, 47.5%)
CIE-LABlab(28.01, 51.53, -43.31)
CIE-LCHlch(28.01, 67.31, 319.95°)
OKLaboklab(40.26% 0.1264 -0.1222)
OKLCHoklch(40.26% 0.176 316)
XYZxyz(10.6722, 5.4603, 23.0414)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1786 #328617
analogous
#331786 #6B1786 #861769
triadic
#6B1786 #866B17 #17866B
tetradic
#6B1786 #863317 #328617 #176986
square
#6B1786 #863317 #328617 #176986
split-complementary
#6B1786 #698617 #178633
monochromatic
#18051E #410E52 #6B1786 #9520BA #B63ADD

Accessibility & contrast

On white

10.04
#6B1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#6B1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1786
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1786#FFFFFF#000000##FFFFFF
##6B17861.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#144484
Tritanopia (blue-blind)
#69324F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6b1786;
/* rgb */ color: rgb(107, 23, 134);
/* oklch */ color: oklch(40.3% 0.176 316.0);
Tailwind
colors: {
  custom: {
    50: '#9960aa',
    500: '#6b1786',
    950: '#000000',
  },
}
SCSS
$custom: #6b1786;
$custom-light: #9960aa;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1786",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 285.405,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40258,
    "c": 0.17582,
    "h": 316
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#6B1786
secondary
#5DBA3F
accent
#ED3A66
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B1786

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

Preview Lab → · Contrast checker → · Palette generator →

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