#6A1A87#6A1A87

#6A1A87 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.4% C 0.174 H 314.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#6A1A87
RGBrgb(106, 26, 135)
HSLhsl(284, 68%, 32%)
HSVhsv(284, 81%, 53%)
CMYKcmyk(21.5%, 80.7%, 0%, 47.1%)
CIE-LABlab(28.25, 50.57, -43.54)
CIE-LCHlch(28.25, 66.73, 319.27°)
OKLaboklab(40.42% 0.1224 -0.123)
OKLCHoklch(40.42% 0.174 314.9)
XYZxyz(10.6857, 5.5526, 23.4259)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1A87 #37871A
analogous
#341A87 #6A1A87 #871A6E
triadic
#6A1A87 #876A1A #1A876A
tetradic
#6A1A87 #87341A #37871A #1A6E87
square
#6A1A87 #87341A #37871A #1A6E87
split-complementary
#6A1A87 #6E871A #1A8734
monochromatic
#190620 #421054 #6A1A87 #9224BA #B241DA

Accessibility & contrast

On white

9.95
#6A1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6A1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1A87
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1A87#FFFFFF#000000##FFFFFF
##6A1A871.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#134585
Tritanopia (blue-blind)
#673451
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a1a87;
/* rgb */ color: rgb(106, 26, 135);
/* oklch */ color: oklch(40.4% 0.174 314.9);
Tailwind
colors: {
  custom: {
    50: '#9961ab',
    500: '#6a1a87',
    950: '#000000',
  },
}
SCSS
$custom: #6a1a87;
$custom-light: #9961ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1a87",
  "rgb": {
    "r": 106,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 284.037,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40422,
    "c": 0.17351,
    "h": 314.9
  },
  "luminance": 0.05552
}

Semantic roles & 50–950 ramp

primary
#6A1A87
secondary
#62BA42
accent
#EB3D6B
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6A1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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