#6A1784#6A1784

#6A1784 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 40.0% C 0.174 H 316.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#6A1784
RGBrgb(106, 23, 132)
HSLhsl(286, 70%, 30%)
HSVhsv(286, 83%, 52%)
CMYKcmyk(19.7%, 82.6%, 0%, 48.2%)
CIE-LABlab(27.69, 50.94, -42.57)
CIE-LCHlch(27.69, 66.39, 320.11°)
OKLaboklab(39.96% 0.1255 -0.1201)
OKLCHoklch(39.96% 0.174 316.2)
XYZxyz(10.4145, 5.3433, 22.3081)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1784 #318417
analogous
#331784 #6A1784 #841767
triadic
#6A1784 #846A17 #17846A
tetradic
#6A1784 #843317 #318417 #176784
square
#6A1784 #843317 #318417 #176784
split-complementary
#6A1784 #678417 #178433
monochromatic
#16051C #400E50 #6A1784 #9420B8 #B539DC

Accessibility & contrast

On white

10.15
#6A1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#6A1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1784
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1784#FFFFFF#000000##FFFFFF
##6A17841.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#154482
Tritanopia (blue-blind)
#68314E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a1784;
/* rgb */ color: rgb(106, 23, 132);
/* oklch */ color: oklch(40.0% 0.174 316.2);
Tailwind
colors: {
  custom: {
    50: '#9960a8',
    500: '#6a1784',
    950: '#000000',
  },
}
SCSS
$custom: #6a1784;
$custom-light: #9960a8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1784",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 285.688,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39956,
    "c": 0.17368,
    "h": 316.2
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#6A1784
secondary
#5CB83F
accent
#ED3B65
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1784

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

Preview Lab → · Contrast checker → · Palette generator →

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