#6C1A87#6C1A87

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

Color values

HEX#6C1A87
RGBrgb(108, 26, 135)
HSLhsl(285, 68%, 32%)
HSVhsv(285, 81%, 53%)
CMYKcmyk(20%, 80.7%, 0%, 47.1%)
CIE-LABlab(28.58, 50.95, -43.00)
CIE-LCHlch(28.58, 66.67, 319.84°)
OKLaboklab(40.72% 0.1251 -0.1213)
OKLCHoklch(40.72% 0.174 315.9)
XYZxyz(10.9262, 5.6766, 23.4371)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1A87 #35871A
analogous
#361A87 #6C1A87 #871A6C
triadic
#6C1A87 #876C1A #1A876C
tetradic
#6C1A87 #87361A #35871A #1A6C87
square
#6C1A87 #87361A #35871A #1A6C87
split-complementary
#6C1A87 #6C871A #1A8736
monochromatic
#1A0620 #431054 #6C1A87 #9524BA #B441DA

Accessibility & contrast

On white

9.84
#6C1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6C1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1A87
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1A87#FFFFFF#000000##FFFFFF
##6C1A871.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#174685
Tritanopia (blue-blind)
#6A3351
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c1a87;
/* rgb */ color: rgb(108, 26, 135);
/* oklch */ color: oklch(40.7% 0.174 315.9);
Tailwind
colors: {
  custom: {
    50: '#9a61ab',
    500: '#6c1a87',
    950: '#000000',
  },
}
SCSS
$custom: #6c1a87;
$custom-light: #9a61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1a87",
  "rgb": {
    "r": 108,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 285.138,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40718,
    "c": 0.17422,
    "h": 315.9
  },
  "luminance": 0.05676
}

Semantic roles & 50–950 ramp

primary
#6C1A87
secondary
#60BA42
accent
#EB3D68
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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