#6A1D8D#6A1D8D

#6A1D8D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.176 H 312.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#6A1D8D
RGBrgb(106, 29, 141)
HSLhsl(281, 66%, 33%)
HSVhsv(281, 79%, 55%)
CMYKcmyk(24.8%, 79.4%, 0%, 44.7%)
CIE-LABlab(29.07, 50.78, -45.95)
CIE-LCHlch(29.07, 68.48, 317.86°)
OKLaboklab(41.14% 0.1186 -0.1301)
OKLCHoklch(41.14% 0.176 312.4)
XYZxyz(11.1901, 5.8663, 25.7370)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D8D #408D1D
analogous
#321D8D #6A1D8D #8D1D78
triadic
#6A1D8D #8D6A1D #1D8D6A
tetradic
#6A1D8D #8D321D #408D1D #1D788D
square
#6A1D8D #8D321D #408D1D #1D788D
split-complementary
#6A1D8D #788D1D #1D8D32
monochromatic
#1E0827 #44135A #6A1D8D #9027C0 #AD4BDA

Accessibility & contrast

On white

9.66
#6A1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6A1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1D8D
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D8D#FFFFFF#000000##FFFFFF
##6A1D8D1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#09468B
Tritanopia (blue-blind)
#663855
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6a1d8d;
/* rgb */ color: rgb(106, 29, 141);
/* oklch */ color: oklch(41.1% 0.176 312.4);
Tailwind
colors: {
  custom: {
    50: '#9963af',
    500: '#6a1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d8d;
$custom-light: #9963af;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d8d",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 281.25,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4114,
    "c": 0.17604,
    "h": 312.4
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#6A1D8D
secondary
#6DBC4A
accent
#E93F74
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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