#6A1786#6A1786

#6A1786 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.1% C 0.175 H 315.5°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#6A1786
RGBrgb(106, 23, 134)
HSLhsl(285, 71%, 31%)
HSVhsv(285, 83%, 53%)
CMYKcmyk(20.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(27.84, 51.34, -43.58)
CIE-LCHlch(27.84, 67.35, 319.67°)
OKLaboklab(40.11% 0.1251 -0.1231)
OKLCHoklch(40.11% 0.175 315.5)
XYZxyz(10.5526, 5.3986, 23.0358)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1786 #338617
analogous
#321786 #6A1786 #86176A
triadic
#6A1786 #866A17 #17866A
tetradic
#6A1786 #863217 #338617 #176A86
square
#6A1786 #863217 #338617 #176A86
split-complementary
#6A1786 #6A8617 #178632
monochromatic
#17051E #410E52 #6A1786 #9320BA #B43ADD

Accessibility & contrast

On white

10.10
#6A1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#6A1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1786
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1786#FFFFFF#000000##FFFFFF
##6A17861.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1786;
/* rgb */ color: rgb(106, 23, 134);
/* oklch */ color: oklch(40.1% 0.175 315.5);
Tailwind
colors: {
  custom: {
    50: '#9960aa',
    500: '#6a1786',
    950: '#000000',
  },
}
SCSS
$custom: #6a1786;
$custom-light: #9960aa;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1786",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 284.865,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40108,
    "c": 0.17547,
    "h": 315.5
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#6A1786
secondary
#5EBA3F
accent
#ED3A68
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1786

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

Preview Lab → · Contrast checker → · Palette generator →

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