#6B1887#6B1887

#6B1887 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.4% C 0.176 H 315.5°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#6B1887
RGBrgb(107, 24, 135)
HSLhsl(285, 70%, 31%)
HSVhsv(285, 82%, 53%)
CMYKcmyk(20.7%, 82.2%, 0%, 47.1%)
CIE-LABlab(28.19, 51.42, -43.64)
CIE-LCHlch(28.19, 67.44, 319.68°)
OKLaboklab(40.41% 0.1254 -0.1232)
OKLCHoklch(40.41% 0.176 315.5)
XYZxyz(10.7625, 5.5288, 23.4172)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1887 #348718
analogous
#331887 #6B1887 #87186B
triadic
#6B1887 #876B18 #18876B
tetradic
#6B1887 #873318 #348718 #186B87
square
#6B1887 #873318 #348718 #186B87
split-complementary
#6B1887 #6B8718 #188733
monochromatic
#19061F #420F53 #6B1887 #9421BB #B43DDC

Accessibility & contrast

On white

9.97
#6B1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1887
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1887#FFFFFF#000000##FFFFFF
##6B18871.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b1887;
/* rgb */ color: rgb(107, 24, 135);
/* oklch */ color: oklch(40.4% 0.176 315.5);
Tailwind
colors: {
  custom: {
    50: '#9960ab',
    500: '#6b1887',
    950: '#000000',
  },
}
SCSS
$custom: #6b1887;
$custom-light: #9960ab;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1887",
  "rgb": {
    "r": 107,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 284.865,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4041,
    "c": 0.17579,
    "h": 315.5
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#6B1887
secondary
#5FBB40
accent
#ED3B68
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B1887

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

Preview Lab → · Contrast checker → · Palette generator →

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