#6A1D8A#6A1D8A

#6A1D8A is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.173 H 313.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#6A1D8A
RGBrgb(106, 29, 138)
HSLhsl(282, 65%, 33%)
HSVhsv(282, 79%, 54%)
CMYKcmyk(23.2%, 79%, 0%, 45.9%)
CIE-LABlab(28.85, 50.14, -44.45)
CIE-LCHlch(28.85, 67.01, 318.44°)
OKLaboklab(40.91% 0.1192 -0.1257)
OKLCHoklch(40.91% 0.173 313.5)
XYZxyz(10.9699, 5.7782, 24.5773)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D8A #3D8A1D
analogous
#331D8A #6A1D8A #8A1D74
triadic
#6A1D8A #8A6A1D #1D8A6A
tetradic
#6A1D8A #8A331D #3D8A1D #1D748A
square
#6A1D8A #8A331D #3D8A1D #1D748A
split-complementary
#6A1D8A #748A1D #1D8A33
monochromatic
#1C0825 #431257 #6A1D8A #9128BD #AE49D9

Accessibility & contrast

On white

9.74
#6A1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#6A1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1D8A
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D8A#FFFFFF#000000##FFFFFF
##6A1D8A1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#114688
Tritanopia (blue-blind)
#673753
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a1d8a;
/* rgb */ color: rgb(106, 29, 138);
/* oklch */ color: oklch(40.9% 0.173 313.5);
Tailwind
colors: {
  custom: {
    50: '#9963ad',
    500: '#6a1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d8a;
$custom-light: #9963ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d8a",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 282.385,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40909,
    "c": 0.17322,
    "h": 313.5
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#6A1D8A
secondary
#6ABB48
accent
#E84071
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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