#6A1C8A#6A1C8A

#6A1C8A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.8% C 0.174 H 313.6°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#6A1C8A
RGBrgb(106, 28, 138)
HSLhsl(283, 66%, 33%)
HSVhsv(283, 80%, 54%)
CMYKcmyk(23.2%, 79.7%, 0%, 45.9%)
CIE-LABlab(28.72, 50.50, -44.66)
CIE-LCHlch(28.72, 67.41, 318.51°)
OKLaboklab(40.82% 0.1201 -0.1263)
OKLCHoklch(40.82% 0.174 313.6)
XYZxyz(10.9458, 5.7300, 24.5692)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1C8A #3C8A1C
analogous
#331C8A #6A1C8A #8A1C73
triadic
#6A1C8A #8A6A1C #1C8A6A
tetradic
#6A1C8A #8A331C #3C8A1C #1C738A
square
#6A1C8A #8A331C #3C8A1C #1C738A
split-complementary
#6A1C8A #738A1C #1C8A33
monochromatic
#1C0724 #431257 #6A1C8A #9126BD #AF47DA

Accessibility & contrast

On white

9.79
#6A1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6A1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1C8A
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1C8A#FFFFFF#000000##FFFFFF
##6A1C8A1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a1c8a;
/* rgb */ color: rgb(106, 28, 138);
/* oklch */ color: oklch(40.8% 0.174 313.6);
Tailwind
colors: {
  custom: {
    50: '#9962ad',
    500: '#6a1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #6a1c8a;
$custom-light: #9962ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1c8a",
  "rgb": {
    "r": 106,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 282.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.17426,
    "h": 313.6
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#6A1C8A
secondary
#68BB46
accent
#E93F70
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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