#6A1C8B#6A1C8B

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

Color values

HEX#6A1C8B
RGBrgb(106, 28, 139)
HSLhsl(282, 66%, 33%)
HSVhsv(282, 80%, 55%)
CMYKcmyk(23.7%, 79.9%, 0%, 45.5%)
CIE-LABlab(28.80, 50.71, -45.16)
CIE-LCHlch(28.80, 67.90, 318.32°)
OKLaboklab(40.9% 0.1199 -0.1277)
OKLCHoklch(40.9% 0.175 313.2)
XYZxyz(11.0185, 5.7591, 24.9523)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1C8B #3D8B1C
analogous
#321C8B #6A1C8B #8B1C74
triadic
#6A1C8B #8B6A1C #1C8B6A
tetradic
#6A1C8B #8B321C #3D8B1C #1C748B
square
#6A1C8B #8B321C #3D8B1C #1C748B
split-complementary
#6A1C8B #748B1C #1C8B32
monochromatic
#1C0725 #431258 #6A1C8B #9126BE #AE47DA

Accessibility & contrast

On white

9.76
#6A1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1C8B
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1C8B#FFFFFF#000000##FFFFFF
##6A1C8B1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#0D4689
Tritanopia (blue-blind)
#663753
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a1c8b;
/* rgb */ color: rgb(106, 28, 139);
/* oklch */ color: oklch(40.9% 0.175 313.2);
Tailwind
colors: {
  custom: {
    50: '#9962ae',
    500: '#6a1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #6a1c8b;
$custom-light: #9962ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1c8b",
  "rgb": {
    "r": 106,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 282.162,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40898,
    "c": 0.17519,
    "h": 313.2
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#6A1C8B
secondary
#6ABC47
accent
#E93E71
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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