#6A1D7D#6A1D7D

#6A1D7D is a dark, vivid purple. Relative luminance 0.054; OKLCH L 40.0% C 0.161 H 318.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#6A1D7D
RGBrgb(106, 29, 125)
HSLhsl(288, 62%, 30%)
HSVhsv(288, 77%, 49%)
CMYKcmyk(15.2%, 76.8%, 0%, 51%)
CIE-LABlab(27.91, 47.44, -37.82)
CIE-LCHlch(27.91, 60.67, 321.44°)
OKLaboklab(39.95% 0.1212 -0.1062)
OKLCHoklch(39.95% 0.161 318.8)
XYZxyz(10.0844, 5.4240, 19.9138)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1D7D #307D1D
analogous
#3A1D7D #6A1D7D #7D1D60
triadic
#6A1D7D #7D6A1D #1D7D6A
tetradic
#6A1D7D #7D3A1D #307D1D #1D607D
square
#6A1D7D #7D3A1D #307D1D #1D607D
split-complementary
#6A1D7D #607D1D #1D7D3A
monochromatic
#16061A #40114B #6A1D7D #9429AF #B641D3

Accessibility & contrast

On white

10.07
#6A1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1D7D
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1D7D#FFFFFF#000000##FFFFFF
##6A1D7D1.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#23447B
Tritanopia (blue-blind)
#6A314C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #6a1d7d;
/* rgb */ color: rgb(106, 29, 125);
/* oklch */ color: oklch(40.0% 0.161 318.8);
Tailwind
colors: {
  custom: {
    50: '#9862a3',
    500: '#6a1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #6a1d7d;
$custom-light: #9862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1d7d",
  "rgb": {
    "r": 106,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 288.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39951,
    "c": 0.16112,
    "h": 318.8
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#6A1D7D
secondary
#5AB145
accent
#E54263
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6A1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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