#6C1987#6C1987

#6C1987 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.6% C 0.175 H 315.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#6C1987
RGBrgb(108, 25, 135)
HSLhsl(285, 69%, 31%)
HSVhsv(285, 81%, 53%)
CMYKcmyk(20%, 81.5%, 0%, 47.1%)
CIE-LABlab(28.47, 51.29, -43.18)
CIE-LCHlch(28.47, 67.04, 319.90°)
OKLaboklab(40.64% 0.1259 -0.1218)
OKLCHoklch(40.64% 0.175 315.9)
XYZxyz(10.9045, 5.6331, 23.4299)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1987 #348719
analogous
#351987 #6C1987 #87196B
triadic
#6C1987 #876C19 #19876C
tetradic
#6C1987 #873519 #348719 #196B87
square
#6C1987 #873519 #348719 #196B87
split-complementary
#6C1987 #6B8719 #198735
monochromatic
#190620 #430F53 #6C1987 #9523BB #B53FDB

Accessibility & contrast

On white

9.87
#6C1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6C1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1987
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1987#FFFFFF#000000##FFFFFF
##6C19871.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#164585
Tritanopia (blue-blind)
#6A3350
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c1987;
/* rgb */ color: rgb(108, 25, 135);
/* oklch */ color: oklch(40.6% 0.175 315.9);
Tailwind
colors: {
  custom: {
    50: '#9a61ab',
    500: '#6c1987',
    950: '#000000',
  },
}
SCSS
$custom: #6c1987;
$custom-light: #9a61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1987",
  "rgb": {
    "r": 108,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 285.273,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.1752,
    "h": 315.9
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#6C1987
secondary
#5FBA41
accent
#EC3C67
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6C1987

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

Preview Lab → · Contrast checker → · Palette generator →

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