#6C1F87#6C1F87

#6C1F87 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.169 H 315.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#6C1F87
RGBrgb(108, 31, 135)
HSLhsl(284, 63%, 33%)
HSVhsv(284, 77%, 53%)
CMYKcmyk(20%, 77%, 0%, 47.1%)
CIE-LABlab(29.20, 49.16, -41.99)
CIE-LCHlch(29.20, 64.65, 319.50°)
OKLaboklab(41.16% 0.1205 -0.1184)
OKLCHoklch(41.16% 0.169 315.5)
XYZxyz(11.0468, 5.9178, 23.4773)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1F87 #3A871F
analogous
#381F87 #6C1F87 #871F6E
triadic
#6C1F87 #876C1F #1F876C
tetradic
#6C1F87 #87381F #3A871F #1F6E87
square
#6C1F87 #87381F #3A871F #1F6E87
split-complementary
#6C1F87 #6E871F #1F8738
monochromatic
#1C0823 #441455 #6C1F87 #942AB9 #B24BD6

Accessibility & contrast

On white

9.62
#6C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#6C1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1F87
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1F87#FFFFFF#000000##FFFFFF
##6C1F871.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#1C4785
Tritanopia (blue-blind)
#6A3652
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #6c1f87;
/* rgb */ color: rgb(108, 31, 135);
/* oklch */ color: oklch(41.2% 0.169 315.5);
Tailwind
colors: {
  custom: {
    50: '#9a63ab',
    500: '#6c1f87',
    950: '#000000',
  },
}
SCSS
$custom: #6c1f87;
$custom-light: #9a63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1f87",
  "rgb": {
    "r": 108,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 284.423,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.41157,
    "c": 0.16894,
    "h": 315.5
  },
  "luminance": 0.05917
}

Semantic roles & 50–950 ramp

primary
#6C1F87
secondary
#66B84A
accent
#E6426D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6C1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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